问题
Adding the following settings to the build.sbt
file of a Play 2.2.x app
does not disable Scaladoc generation. How can it be disabled?
play.Project(appName, appVersion, appDependencies)
.settings(scalaVersion := "2.10.3")
.settings(jsSettings : _*)
.settings(
publishArtifact in (Compile, packageDoc) := false,
publishArtifact in packageDoc := false
)
回答1:
Add the following settings to the Play project:
sources in (Compile,doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false
With the change it should be as follows:
play.Project(appName, appVersion, appDependencies)
.settings(scalaVersion := "2.10.3")
.settings(jsSettings : _*)
.settings(
publishArtifact in (Compile, packageDoc) := false,
publishArtifact in packageDoc := false,
sources in (Compile,doc) := Seq.empty
)
Thanks @peter-hilton for the comment!
来源:https://stackoverflow.com/questions/21461798/how-to-disable-scaladoc-generation-in-dist-task-in-play-2-2-x-using-project-bui