forked from ucb-bar/testchipip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
44 lines (34 loc) · 1.04 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
organization := "edu.berkeley.cs"
version := "1.0-SNAPSHOT"
name := "testchipip"
scalaVersion := "2.13.10"
libraryDependencies += "edu.berkeley.cs" %% "rocketchip" % "1.2.+"
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { x => false }
pomExtra := <url>https://github.com/ucb-bar/testchipip</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/testchipip.git</url>
<connection>scm:git:github.com/ucb-bar/testchipip.git</connection>
</scm>
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")
}
}
resolvers ++= Seq(
Resolver.sonatypeRepo("snapshots"),
Resolver.sonatypeRepo("releases"),
Resolver.mavenLocal)