-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublish.sbt
40 lines (37 loc) · 1.13 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
pomIncludeRepository in ThisBuild := { _ => false }
publishMavenStyle in ThisBuild := true
publishArtifact in Test := false
publishTo in ThisBuild := {
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")
}
scmInfo in ThisBuild := Some(
ScmInfo(
url("https://github.com/Interel-Group/core3"),
"scm:[email protected]:Interel-Group/core3"
)
)
developers in ThisBuild := List(
Developer(
id = "jamesaddinall",
name = "James Addinall",
email = "[email protected]",
url = url("https://github.com/jamesaddinall")
),
Developer(
id = "sndnv",
name = "Angel Sanadinov",
email = "[email protected]",
url = url("https://github.com/sndnv")
)
)
credentials ++=
(for {
username <- Option(System.getenv().get("NEXUS_USERNAME"))
password <- Option(System.getenv().get("NEXUS_PASSWORD"))
} yield {
Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)
}).toSeq