user1284795
user1284795

Reputation: 2371

How to use sbt to specify dependsOn other module with different scala version?

I have a multiple module projects in scala. Module A, B, C. B --dependsOn--> A and C --dependsOn--> A too. The module A && C is compiled by scala 2.11 while module B has to be compiled by scala 2.10 since there is a dependency library only with scala 2.10. How to use sbt to specify module B dependsOn module A?

Upvotes: 2

Views: 614

Answers (1)

Alexey Romanov
Alexey Romanov

Reputation: 170839

It won't work. Period. Either switch A and C to compile with Scala 2.10 as well, or if the source of 2.10-only library is available, update it to 2.11.

Upvotes: 1

Related Questions