-
Notifications
You must be signed in to change notification settings - Fork 1
/
publish.sbt
40 lines (35 loc) · 1.12 KB
/
publish.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
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (version.value.trim.endsWith("SNAPSHOT")) Some("snapshots" at nexus + "content/repositories/snapshots")
else Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
// Random stuff sonatype wants
pomExtra := (
<url>http://www.github.com/rjmac/simple-arm</url>
<licenses>
<!-- I do not accept that I have the right to dictate terms of use -->
<license>
<name>Public domain</name>
</license>
<license>
<!-- Resource.scala is derived from scala-arm -->
<name>BSD-like</name>
<url>http://www.scala-lang.org/downloads/license.html</url>
</license>
</licenses>
<scm>
<url>git://github.com/rjmac/simple-arm.git</url>
<connection>scm:git://github.com/rjmac/simple-arm.git</connection>
</scm>
<developers>
<developer>
<id>robertm</id>
<name>Robert Macomber</name>
</developer>
</developers>
)
// Random stuff sonatype does not want
pomIncludeRepository := { _ => false }
// These are the defaults, but set them manually just in case
publishMavenStyle := true
publishArtifact in Test := false