Specify different version of sbt for a subproject in multi-project?

后端 未结 1 478
醉酒成梦
醉酒成梦 2021-01-05 15:10

I have a multi-project containing a few subprojects.

The root project\'s project/build.properties contains

sbt.version=0.13.0

1条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-05 15:30

    Right now, sbt allows deep task-level dependencies between projects in the same build. So, while the projects each have their own directory, they share one classloader for their build which has all the definitions.

    This places the limitation that you cannot have builds sharing incompatible versions.

    Removing this restriction may be possible in the future, but for now I'd do one of the following:

    1. Just keep using sbt 0.12.4 for your build
    2. Migrate all communication between projects to happen via Ivy. Have 2 builds with a wrapper script which runs them in the correct order.

    0 讨论(0)
提交回复
热议问题