SBT: how to prevent a scala library from automatically adding to pom?

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 .

+8
java scala sbt
source share
1 answer

In your build.sbt file autoScalaLibrary autoScalaLibrary := false this removes the dependency from scala -library.

+9
source share

All Articles