Skip to content

Commit 10751f5

Browse files
committed
Merge branch '3.1.x' into 3.1.0
2 parents dc20aa4 + 9fd9433 commit 10751f5

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

build.sbt

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ lazy val commonSettings = Seq (
3939
autoAPIMappings := true,
4040
scalaVersion := "2.11.12",
4141
crossScalaVersions := Seq("2.11.12", "2.12.4"),
42+
resolvers ++= Seq(
43+
Resolver.sonatypeRepo("snapshots"),
44+
Resolver.sonatypeRepo("releases")
45+
),
4246
scalacOptions := Seq("-deprecation", "-feature") ++ scalacOptionsVersion(scalaVersion.value),
4347
libraryDependencies += "org.scala-lang" % "scala-reflect" % scalaVersion.value,
4448
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full),
@@ -57,12 +61,11 @@ lazy val commonSettings = Seq (
5761
}
5862
)
5963

60-
lazy val chiselSettings = Seq (
61-
name := "chisel3",
62-
64+
lazy val publishSettings = Seq (
6365
publishMavenStyle := true,
6466
publishArtifact in Test := false,
6567
pomIncludeRepository := { x => false },
68+
// Don't add 'scm' elements if we have a git.remoteRepo definition.
6669
pomExtra := <url>http://chisel.eecs.berkeley.edu/</url>
6770
<licenses>
6871
<license>
@@ -71,10 +74,6 @@ lazy val chiselSettings = Seq (
7174
<distribution>repo</distribution>
7275
</license>
7376
</licenses>
74-
<scm>
75-
<url>https://github.com/freechipsproject/chisel3.git</url>
76-
<connection>scm:git:github.com/freechipsproject/chisel3.git</connection>
77-
</scm>
7877
<developers>
7978
<developer>
8079
<id>jackbackrack</id>
@@ -92,12 +91,11 @@ lazy val chiselSettings = Seq (
9291
else {
9392
Some("releases" at nexus + "service/local/staging/deploy/maven2")
9493
}
95-
},
94+
}
95+
)
9696

97-
resolvers ++= Seq(
98-
Resolver.sonatypeRepo("snapshots"),
99-
Resolver.sonatypeRepo("releases")
100-
),
97+
lazy val chiselSettings = Seq (
98+
name := "chisel3",
10199

102100
libraryDependencies ++= Seq(
103101
"org.scalatest" %% "scalatest" % "3.0.1" % "test",
@@ -128,11 +126,13 @@ lazy val chisel = (project in file(".")).
128126
enablePlugins(ScalaUnidocPlugin).
129127
settings(
130128
buildInfoPackage := name.value,
129+
buildInfoOptions += BuildInfoOption.BuildTime,
131130
buildInfoUsePackageAsPath := true,
132131
buildInfoKeys := Seq[BuildInfoKey](buildInfoPackage, version, scalaVersion, sbtVersion)
133132
).
134133
settings(commonSettings: _*).
135134
settings(chiselSettings: _*).
135+
settings(publishSettings: _*).
136136
// Prevent separate JARs from being generated for coreMacros and chiselFrontend.
137137
dependsOn(coreMacros % "compile-internal;test-internal").
138138
dependsOn(chiselFrontend % "compile-internal;test-internal").
@@ -161,3 +161,7 @@ lazy val chisel = (project in file(".")).
161161
// published artifact) also see the stuff in coreMacros and chiselFrontend.
162162
exportJars := true
163163
)
164+
// We need the following for the release version that uses sbt to invoke firrtl.
165+
// sbt doesn't deal well with multiple simulataneous invocations for the same user
166+
167+
parallelExecution in Test := false

0 commit comments

Comments
 (0)