How to disable ScalaDoc generation in dist task in Play 2.2.x (using project/build.scala)?

…衆ロ難τιáo~ 提交于 2019-11-29 22:54:39
Jacek Laskowski

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!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!