Starting from this question , I want to be able to compile sbt projects in two different ways, i.e. with different scalacOptions . Answering repetitive questions explains why introducing a different configuration does not help, because you also need special sources.
So. But I do not want loyal sources. I want to compile exactly the same sources, but with different compiler settings. Therefore, I suggest that the solution should be to define a new task, not compilation. how
val myCompile = taskKey[???]("Compiles my way") scalacOptions in MyCompile ++= Seq("-elide-below", "1")
Then I would like the minimum effort to duplicate the default compile job with a separate target directory and could it work than in myCompile:assembly ...? How can I do it?
scala sbt
0__
source share