From 7649eb1274aaaae06a6e8f94104711ddad4ba232 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Fri, 3 Jan 2014 09:47:46 -0500 Subject: [PATCH] Disable doc publication and generation for examples and tests --- project/Build.scala | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/project/Build.scala b/project/Build.scala index c02e7246..75451c30 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -9,6 +9,8 @@ object ConfigBuild extends Build { // make-pom has a more specific publishArtifact setting already // so needs specific override 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 publish := {}, publishLocal := {} @@ -24,11 +26,19 @@ object ConfigBuild extends Build { 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", base = file("."), - settings = Project.defaultSettings ++ unpublished) aggregate(testLib, configLib, - simpleLibScala, simpleAppScala, complexAppScala, - simpleLibJava, simpleAppJava, complexAppJava) + settings = rootSettings) aggregate(testLib, configLib, + simpleLibScala, simpleAppScala, complexAppScala, + simpleLibJava, simpleAppJava, complexAppJava) lazy val configLib = Project(id = "config", base = file("config"),