summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Lawson2017-07-17 16:57:33 -0700
committerGitHub2017-07-17 16:57:33 -0700
commit48c0322e0dede7882fc218ec65292cd0a39fbe1d (patch)
tree2ca9f777770376c0369ad0691f3a0f19e146b9ab
parent794812fc2f18767416c2d4c39605f4d8016cc4dc (diff)
Update deprecated code in build.sbt (#648)
-rw-r--r--build.sbt16
1 files changed, 6 insertions, 10 deletions
diff --git a/build.sbt b/build.sbt
index 2457d42c..d1b3eb79 100644
--- a/build.sbt
+++ b/build.sbt
@@ -65,7 +65,8 @@ lazy val chiselSettings = Seq (
</developer>
</developers>,
- publishTo <<= version { v: String =>
+ publishTo := {
+ val v = version.value
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) {
Some("snapshots" at nexus + "content/repositories/snapshots")
@@ -90,11 +91,6 @@ lazy val chiselSettings = Seq (
parallelExecution in Test := true,
javacOptions ++= Seq("-target", "1.7")
- // Hopefully we get these options back in Chisel3
- // scalacOptions in (Compile, doc) <++= (baseDirectory in LocalProject("chisel"), version) map { (bd, v) =>
- // Seq("-diagrams", "-diagrams-max-classes", "25", "-sourcepath", bd.getAbsolutePath, "-doc-source-url",
- // "https://github.com/ucb-bar/chisel/tree/master/€{FILE_PATH}.scala")
- // }
)
lazy val coreMacros = (project in file("coreMacros")).
@@ -134,10 +130,10 @@ lazy val chisel = (project in file(".")).
),
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),
+ mappings in (Compile, packageBin) ++= (mappings in (coreMacros, Compile, packageBin)).value,
+ mappings in (Compile, packageSrc) ++= (mappings in (coreMacros, Compile, packageSrc)).value,
+ mappings in (Compile, packageBin) ++= (mappings in (chiselFrontend, Compile, packageBin)).value,
+ mappings in (Compile, packageSrc) ++= (mappings in (chiselFrontend, Compile, packageSrc)).value,
// Export the packaged JAR so projects that depend directly on Chisel project (rather than the
// published artifact) also see the stuff in coreMacros and chiselFrontend.
exportJars := true