2
votes

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.

1
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
@jkinkead: It is really just the version I change (see question).Make42
Can you include a minimal reproduction case, and the version of assembly you have set in your plugins file?jkinkead
@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.sbtMake42
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

1 Answers

1
votes

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

it worked for scala 2.10