-
Notifications
You must be signed in to change notification settings - Fork 20
/
build.sbt
87 lines (72 loc) · 2.39 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
// SPDX-License-Identifier: Apache-2.0
name := "firrtl-diagrammer"
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases")
)
organization := "edu.berkeley.cs"
version := "1.5-SNAPSHOT"
autoAPIMappings := true
scalaVersion := "2.12.14"
crossScalaVersions := Seq("2.12.15", "2.13.6")
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/freechipsproject/diagrammer.git</url>
<connection>scm:git:github.com/freechipsproject/diagrammer.git</connection>
</scm>
<developers>
<developer>
<id>chick</id>
<name>Chick Markley</name>
<url>https://github.com/chick</url>
</developer>
<developer>
<id>mgnica</id>
<name>Monica Kumaran</name>
<url>https://github.com/mgnica</url>
</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"))
}
}
// Provide a managed dependency on X if -DXVersion="" is supplied on the command line.
val defaultVersions = Map(
"chisel3" -> "3.5-SNAPSHOT"
)
val chiselVersion = sys.props.getOrElse("chisel3Version", defaultVersions("chisel3"))
addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % chiselVersion cross CrossVersion.full)
libraryDependencies += "edu.berkeley.cs" %% "chisel3" % chiselVersion
libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.9" % "test",
)
scalacOptions in Compile ++= Seq(
"-deprecation",
"-feature",
"-unchecked",
"-language:reflectiveCalls",
"-language:existentials",
"-language:implicitConversions"
)
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
// Assembly
assemblyJarName in assembly := "diagrammer.jar"
test in assembly := {} // Should there be tests?
assemblyOutputPath in assembly := file("./utils/bin/diagrammer.jar")