summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Lin2016-10-05 14:34:39 -0700
committerGitHub2016-10-05 14:34:39 -0700
commitc7ce06493300cf7ffa89ef472cd6a7086443c16f (patch)
treee090352fb8eff32f9e8081229e90098941f70dd4
parentc24fc9b93d440cd5604b5c83e5b79b80d9c7604c (diff)
parentc68f1fd9fa27f93bae24bc14575f2d535d10594c (diff)
Merge pull request #301 from ucb-bar/unidoc
Generate scaladoc for all subprojects.
-rw-r--r--build.sbt18
-rw-r--r--project/plugins.sbt2
2 files changed, 14 insertions, 6 deletions
diff --git a/build.sbt b/build.sbt
index 02a0e9f5..5c8461ba 100644
--- a/build.sbt
+++ b/build.sbt
@@ -6,10 +6,18 @@ site.includeScaladoc()
ghpages.settings
+import UnidocKeys._
+
+lazy val customUnidocSettings = unidocSettings ++ Seq (
+ doc in Compile := (doc in ScalaUnidoc).value,
+ target in unidoc in ScalaUnidoc := crossTarget.value / "api"
+)
+
lazy val commonSettings = Seq (
organization := "edu.berkeley.cs",
version := "3.1-SNAPSHOT",
git.remoteRepo := "git@github.com:ucb-bar/chisel3.git",
+ autoAPIMappings := true,
scalaVersion := "2.11.7"
)
@@ -94,18 +102,16 @@ lazy val chiselFrontend = (project in file("chiselFrontend")).
lazy val chisel = (project in file(".")).
settings(commonSettings: _*).
+ settings(customUnidocSettings: _*).
settings(chiselSettings: _*).
dependsOn(coreMacros).
dependsOn(chiselFrontend).
settings(
+ aggregate in doc := false,
// Include macro classes, resources, and sources main jar.
mappings in (Compile, packageBin) <++= mappings in (coreMacros, Compile, packageBin),
mappings in (Compile, packageSrc) <++= mappings in (coreMacros, Compile, packageSrc),
mappings in (Compile, packageBin) <++= mappings in (chiselFrontend, Compile, packageBin),
mappings in (Compile, packageSrc) <++= mappings in (chiselFrontend, Compile, packageSrc)
- )
-
-// This is ugly. There must be a better way.
-publish <<= (publish) dependsOn (publish in coreMacros, publish in chiselFrontend)
-
-publishLocal <<= (publishLocal) dependsOn (publishLocal in coreMacros, publishLocal in chiselFrontend)
+ ).
+ aggregate(coreMacros, chiselFrontend)
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 585435a0..58166621 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -13,3 +13,5 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.3.5")
addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.4")
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "0.8.2")
+
+addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.3.3")