2012-03-13 58 views
8

在一个由仅包含Scala测试的Java源代码组成的项目中,我使用了the instructions to have the artifacts uploaded to Maven Central。这工作得很好,除了scala-library在pom中被列为编译时依赖项的事实,我不想这样做,因为这会导致我的库的用户将scala作为传递依赖项。有没有办法防止这种依赖被添加?SBT:如何防止自动将scala-library添加到pom中?

我使用的确切build.sbt可以看到on github

回答

9

在您的build.sbt集合autoScalaLibrary := false这将删除依赖到scala库。

相关问题