java-如何在Play 2.2.x的dist任务中禁用scaladoc生成(使用build.sbt)?
作者:互联网
使用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?
解决方法:
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.,它类似于使用.settings调用的project / *.scala文件中的完整构建定义.
您应该将以下内容添加到build.sbt中:
publishArtifact in (Compile, packageDoc) := false
publishArtifact in packageDoc := false
sources in (Compile,doc) := Seq.empty
标签:scala,sbt,playframework,java,playframework-2-2 来源: https://codeday.me/bug/20191121/2051038.html