简体   繁体   中英

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM