-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpublish.sbt
39 lines (35 loc) · 1.16 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
/*
This will publish to sonatype / maven central
Use `sbt -DSONATYPE_USERNAME=$username -DSONATYPE_PASSWORD=$password -DSONATYPE_SECRETKEY_PHRASE=$secretkeyphrase "+ signedPublish"` to publish IF you have sonatype access.
The env vars above will be set when building/publishing with travis CI. Also see sonatype.sbt
*/
publishMavenStyle := true
pomIncludeRepository := { _ => false }
publishTo := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}
pomExtra := (
<url>https://github.com/valenterry/bamboomigrate</url>
<licenses>
<license>
<name>MIT License</name>
<url>http://www.opensource.org/licenses/mit-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:valenterry/bamboomigrate.git</url>
<connection>scm:git:[email protected]:valenterry/bamboomigrate.git</connection>
</scm>
<developers>
<developer>
<id>valenterry</id>
<name>Valentin Willscher</name>
<email>[email protected]</email>
</developer>
</developers>
)