如何在Play 2.2.x的dist任务中禁用ScalaDoc生成(使用project/build.scala)? [英] How to disable ScalaDoc generation in dist task in Play 2.2.x (using project/build.scala)?

查看:108
本文介绍了如何在Play 2.2.x的dist任务中禁用ScalaDoc生成(使用project/build.scala)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将以下设置添加到Play 2.2.x应用程序的build.sbt文件中 不会禁用Scaladoc生成.如何禁用它?

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
    )

推荐答案

将以下设置添加到Play项目:

Add the following settings to the Play project:

sources in (Compile,doc) := Seq.empty
publishArtifact in (Compile, packageDoc) := false

更改后,应如下所示:

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
    )

感谢 @ peter-hilton 的评论!

这篇关于如何在Play 2.2.x的dist任务中禁用ScalaDoc生成(使用project/build.scala)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆