Disable doc publication and generation for examples and tests

This commit is contained in:
Havoc Pennington 2014-01-03 09:47:46 -05:00
parent a48edce4b4
commit 7649eb1274

View File

@ -9,6 +9,8 @@ object ConfigBuild extends Build {
// make-pom has a more specific publishArtifact setting already // make-pom has a more specific publishArtifact setting already
// so needs specific override // so needs specific override
publishArtifact in makePom := false, publishArtifact in makePom := false,
// no docs to publish
publishArtifact in packageDoc := false,
// can't seem to get rid of ivy files except by no-op'ing the entire publish task // can't seem to get rid of ivy files except by no-op'ing the entire publish task
publish := {}, publish := {},
publishLocal := {} publishLocal := {}
@ -24,11 +26,19 @@ object ConfigBuild extends Build {
override val settings = super.settings ++ Seq(isSnapshot <<= isSnapshot or version(_ endsWith "-SNAPSHOT")) override val settings = super.settings ++ Seq(isSnapshot <<= isSnapshot or version(_ endsWith "-SNAPSHOT"))
lazy val rootSettings: Seq[Setting[_]] =
Project.defaultSettings ++
unpublished ++
Seq(aggregate in doc := false,
doc := (doc in (configLib, Compile)).value,
aggregate in packageDoc := false,
packageDoc := (packageDoc in (configLib, Compile)).value)
lazy val root = Project(id = "root", lazy val root = Project(id = "root",
base = file("."), base = file("."),
settings = Project.defaultSettings ++ unpublished) aggregate(testLib, configLib, settings = rootSettings) aggregate(testLib, configLib,
simpleLibScala, simpleAppScala, complexAppScala, simpleLibScala, simpleAppScala, complexAppScala,
simpleLibJava, simpleAppJava, complexAppJava) simpleLibJava, simpleAppJava, complexAppJava)
lazy val configLib = Project(id = "config", lazy val configLib = Project(id = "config",
base = file("config"), base = file("config"),