forked from mfkiwl/berkeley-hardfloat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
66 lines (57 loc) · 1.84 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
organization := "edu.berkeley.cs"
version := "1.3-SNAPSHOT"
name := "hardfloat"
scalaVersion := "2.12.8"
scalacOptions += "-Xsource:2.11"
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
)
val defaultVersions = Map("chisel3" -> "3.3-SNAPSHOT")
// Provide a managed dependency on chisel if -DchiselVersion="" issupplied on the command line.
libraryDependencies ++= (Seq("chisel3").map {
dep: String => "edu.berkeley.cs" %% dep % sys.props.getOrElse(dep + "Version", defaultVersions(dep))
})
libraryDependencies ++= Seq("org.scalatest" %% "scalatest" % "3.2.0" % "test")
Test / testForkedParallel := true
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
// Don't add 'scm' elements if we have a git.remoteRepo definition,
// but since we don't (with the removal of ghpages), add them in below.
pomExtra := <url>http://chisel.eecs.berkeley.edu/</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/ucb-bar/berkeley-hardfloat.git</url>
<connection>scm:git:github.com/ucb-bar/berkeley-hardfloat.git</connection>
</scm>
<developers>
<developer>
<id>jhauser-ucberkeley</id>
<name>John Hauser</name>
</developer>
<developer>
<id>aswaterman</id>
<name>Andrew Waterman</name>
</developer>
<developer>
<id>yunsup</id>
<name>Yunsup Lee</name>
</developer>
</developers>
publishTo := {
val v = version.value
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT")) {
Some("snapshots" at nexus + "content/repositories/snapshots")
}
else {
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
}