Reputation: 2228
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.
Upvotes: 10
Views: 1051
Reputation: 24403
In your build.sbt set autoScalaLibrary := false
this removes the dependency to the scala-library.
Upvotes: 10