2014-01-30 66 views

回答

46

添加以下設置播放項目:

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的評論!

+4

這似乎阻止爲我創建文檔JAR:'設置(publishArtifact in(Compile,packageDoc):= false)',對於源代碼'packageSrc'也是如此。 –

+3

Play for 2.3.2:https://github.com/guardian/gu-who/commit/340d42acdef8f0b1a085026d9fb5276976ac0607 –

相關問題