使用java-play 2.2.1和sbt 0.13.0,我在How to disable ScalaDoc generation in dist task in Play 2.2.x (using project/build.scala)?中遇到了同样的问题,除了我使用(据称)标准build.sbt
而不是Build.scala
有没有办法用build.sbt
执行此操作?或者我应该转移到Build.scala
?
答案 0 :(得分:3)
tl; dr .settings
方法调用中的内容应该直接转到build.sbt
。
与build.sbt defines a Seq[Setting[_]]
, i.e. it’s a list of Scala expressions, separated by blank lines, where each one becomes one element in the sequence.一样,它与使用project/*.scala
调用的.settings
个文件中的完整版本定义相似。
您应该将以下内容添加到build.sbt
:
publishArtifact in (Compile, packageDoc) := false
publishArtifact in packageDoc := false
sources in (Compile,doc) := Seq.empty