-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.sbt
40 lines (33 loc) · 1.11 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
import com.jsuereth.sbtpgp.PgpKeys.publishSigned
import sbt._
organizationHomepage := Some(url("https://openapi-generator.tech/"))
homepage := Some(url("https://openapi-generator.tech/"))
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
scmInfo := Some(
ScmInfo(
url("https://github.com/jrouly/sbt-openapi-diff"),
"scm:[email protected]:jrouly/sbt-openapi-diff.git"
)
)
developers := List(
Developer(
id = "jrouly",
name = "Michel Rouly",
email = "[email protected]",
url = url("https://michel.rouly.net")
)
)
credentials += Credentials(
realm = "Sonatype Nexus Repository Manager",
host = "s01.oss.sonatype.org",
userName = sys.env.getOrElse("SONATYPE_USER", "username"),
passwd = sys.env.getOrElse("SONATYPE_PASS", "password")
)
pomIncludeRepository := { _ => false }
pgpSigningKey := Some("0xFA8B833314500A89")
publishMavenStyle := true
publishTo := Some {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) "snapshots" at nexus + "content/repositories/snapshots"
else "releases" at nexus + "service/local/staging/deploy/maven2"
}