forked from fun-cqrs/fun-cqrs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sonatype.sbt
36 lines (33 loc) · 1.1 KB
/
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
32
33
34
35
36
sonatypeProfileName := "io.strongtyped"
credentials ++= (for {
username <- Option(System.getenv().get("SONATYPE_USERNAME"))
password <- Option(System.getenv().get("SONATYPE_PASSWORD"))
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)).toSeq
pomExtra in Global := {
<url>https://github.com/strongtyped/fun-cqrs</url>
<licenses>
<license>
<name>Apache-style</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/strongtyped/fun-cqrs.git</url>
<connection>scm:git:git@github.com:strongtyped/fun-cqrs.git</connection>
</scm>
<developers>
<developer>
<id>@renatocaval</id>
<name>Renato Cavalcanti</name>
<url>http://www.strongtyped.io/</url>
</developer>
</developers>
}
publishTo in Global := {
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")
}