Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate aggregate coverage but publish a single Jar #695

Merged
merged 2 commits into from
Sep 20, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ lazy val chisel = (project in file(".")).
// Prevent separate JARs from being generated for coreMacros and chiselFrontend.
dependsOn(coreMacros % "compile-internal;test-internal").
dependsOn(chiselFrontend % "compile-internal;test-internal").
// The following is required until sbt-scoverage correctly deals with inDependencies
// Unfortunately, it also revives publishing of the subproject jars. Disable until the latter is resolved (again).
//aggregate(coreMacros, chiselFrontend).
aggregate(coreMacros, chiselFrontend).
settings(
scalacOptions in Test ++= Seq("-language:reflectiveCalls"),
scalacOptions in Compile in doc ++= Seq(
Expand All @@ -149,7 +147,13 @@ lazy val chisel = (project in file(".")).
"-doc-title", name.value,
"-doc-root-content", baseDirectory.value+"/root-doc.txt"
),
aggregate in doc := false,
// Disable aggregation in general, but enable it for specific tasks.
// Otherwise we get separate Jar files for each subproject and we
// go to great pains to package all chisel3 core code in a single Jar.
// If you get errors indicating coverageReport is undefined, be sure
// you have sbt-scoverage in project/plugins.sbt
aggregate := false,
aggregate in coverageReport := true,
// Include macro classes, resources, and sources main JAR.
mappings in (Compile, packageBin) ++= (mappings in (coreMacros, Compile, packageBin)).value,
mappings in (Compile, packageSrc) ++= (mappings in (coreMacros, Compile, packageSrc)).value,
Expand Down