2

My project build, when using scalaVersion to be 2.11.8. When I switch to scalaVersion 2.12.1, I get the error that the symbol assembly in mainClass in assembly := ... cannot be found. Is https://github.com/sbt/sbt-assembly not working with scala 2.12.1 yet?

So

scalaVersion in ThisBuild := "2.11.8",

works, but

scalaVersion in ThisBuild := "2.12.1",

does not work.

Make42
  • 12,236
  • 24
  • 79
  • 155
  • Your version of Scala should have no effect on your sbt plugins, since they're all run in the sbt process with Scala 2.10. Can you include the exact changes you made to your `build.sbt` file? – jkinkead Jan 11 '17 at 19:26
  • @jkinkead: It is really just the version I change (see question). – Make42 Jan 12 '17 at 09:39
  • Can you include a minimal reproduction case, and the version of assembly you have set in your plugins file? – jkinkead Jan 12 '17 at 21:28
  • @jkinkead: A MWE takes a bit of time. For now: I added the line `addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.3")` to the file `project/assembly.sbt` – Make42 Jan 13 '17 at 13:54
  • I can't reproduce trivially. Given that the scala version shouldn't affect your build at all, my only guess is that you have some sort of edit error in your `build.sbt` file (or you were missing declaring the plugin entirely before your last comment). – jkinkead Jan 13 '17 at 19:49

1 Answers1

1

use below sbt assembly version addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.5")

it worked for scala 2.10