How to have SBT subproject with multiple Scala versions?

后端 未结 3 1496
感情败类
感情败类 2021-02-04 08:28

I have a project using Scala 2.10 and one using Scala 2.11. They depend on a common project, which can compile with both.

lazy val foo = (project in file(\"foo\"         


        
3条回答
  •  孤街浪徒
    2021-02-04 08:56

    Yevgeniy Mordovkin's proposed solution, to declare crossPaths := false in the baz project, works.

    Another thing you might do, is to prepend a + before the command: sbt '+ bar/update'. That will build baz for all declared Scala versions.

提交回复
热议问题