-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sbt
41 lines (31 loc) · 1.15 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
41
publishMavenStyle := true
publishArtifact in Test := false
licenses += ("Apache 2.0", url("https://www.apache.org/licenses/LICENSE-2.0.html"))
homepage := Some(url("https://github.com/woq-blended/sbt-phoenix"))
scmInfo := Some(
ScmInfo(
url("https://github.com/woq-blended/sbt-phoenix"),
"scm:git@github.com:woq-blended/sbt-phoenix.git"
)
)
developers := List(
Developer(id = "atooni", name = "Andreas Gies", email = "andreas@wayofquality.de", url = url("https://github.com/atooni")),
Developer(id = "lefou", name = "Tobias Roeser", email = "tobias.roser@tototec.de", url = url("https://github.com/lefou"))
)
sonatypeProfileName := "de.wayofquality"
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
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")
}
}