In a project that consists of Java-only sources with Scala tests and which is built using SBT 0.11.2, I followed instructions for loading artifacts into Maven Central . This worked fine, except for the fact that the scala library is listed as a compile-time dependency in pom, which I don't want, because it will force 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 that I use can be seen on github .
In your build.sbt file autoScalaLibrary autoScalaLibrary := false this removes the dependency from scala -library.
autoScalaLibrary := false