-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsonatype.sbt
31 lines (29 loc) · 990 Bytes
/
sonatype.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
publishTo <<= version { (v: String) =>
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")
}
// Stuff sonatype wants
pomExtra := (
<url>http://www.github.com/algorithmiaio/algorithmia-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<connection>scm:git:git@github.com:algorithmiaio/algorithmia-java.git</connection>
<url>https://github.com/algorithmiaio/algorithmia-java</url>
</scm>
<developers>
<developer>
<name>Algorithmia</name>
<email>support@algorithmia.com</email>
<organization>Algorithmia</organization>
</developer>
</developers>
)
// Stuff sonatype does not want
pomIncludeRepository := { _ => false }