-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.sbt
64 lines (46 loc) · 1.46 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
organization := "io.github.ucsc-vama"
version := "0.8-SNAPSHOT"
name := "essent"
scalaVersion := "2.13.12"
scalacOptions ++= Seq("-deprecation", "-unchecked")
libraryDependencies += "com.github.scopt" %% "scopt" % "3.7.1"
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.0" % "test"
libraryDependencies += "org.json4s" %% "json4s-native" % "3.6.12"
libraryDependencies += "edu.berkeley.cs" %% "firrtl" % "1.5.6"
// Assembly
assembly / assemblyJarName := "essent.jar"
assembly / assemblyOutputPath:= file("./utils/bin/essent.jar")
// Ignore disabled .scala files
unmanagedSources / excludeFilter := HiddenFileFilter || "*disabled*.scala"
// Publishing setup
publishMavenStyle := true
Test / publishArtifact := false
pomIncludeRepository := { x => false }
// POM info
pomExtra := (
<url>https://github.com/ucsc-vama/essent</url>
<licenses>
<license>
<name>BSD-style</name>
<url>hhttps://opensource.org/licenses/BSD-3-Clause</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>sbeamer</id>
<name>Scott Beamer</name>
<email>[email protected]</email>
<organization>UC Santa Cruz</organization>
</developer>
</developers>
)
publishTo := {
val v = version.value
val nexus = "https://s01.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"))
}
}