-
Notifications
You must be signed in to change notification settings - Fork 87
/
build.sbt
65 lines (57 loc) · 1.97 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
organization := "edu.berkeley.cs"
version := "1.5-SNAPSHOT"
name := "hardfloat"
scalaVersion := "2.13.10"
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
)
Compile / scalaSource := baseDirectory.value / "hardfloat/src/main/scala"
Test / scalaSource := baseDirectory.value / "hardfloat/tests/src"
Test / resourceDirectory := baseDirectory.value / "hardfloat/tests/resources"
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % "3.5.6" cross CrossVersion.full)
libraryDependencies += "edu.berkeley.cs" %% "chisel3" % "3.5.6"
libraryDependencies ++= Seq("org.scalatest" %% "scalatest" % "3.2.0" % "test")
libraryDependencies += "org.scala-lang.modules" %% "scala-parallel-collections" % "1.0.4"
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")
}
}