In a project that consists of Java-only sources with Scala tests and which is built with SBT 0.11.2, I have followed the instructions to have the artifacts uploaded to Maven Central. This worked fine, except for the fact that scala-library is listed as a compile-time dependency in the pom, which I don't want, because it would cause the users of my library to pull scala as a transitive dependency. Is there a way to prevent this dependency from being added?
The exact build.sbt I use can be seen on github.
In your build.sbt set autoScalaLibrary := false
this removes the dependency to the scala-library.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With