-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.sbt
50 lines (46 loc) · 1.65 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
42
43
44
45
46
47
48
49
50
// Sonatype repositary publish options
publishMavenStyle := true
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")
}
publishArtifact in Test := false
pomIncludeRepository := { _ => false}
pomExtra :=
<url>https://github.com/hypertino/media-upload-service</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://opensource.org/licenses/BSD-3-Clause</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>[email protected]:hypertino/media-upload-service.git</url>
<connection>scm:git:[email protected]:hypertino/media-upload-service.git</connection>
</scm>
<developers>
<developer>
<id>maqdev</id>
<name>Magomed Abdurakhmanov</name>
<url>https://github.com/maqdev</url>
</developer>
<developer>
<id>hypertino</id>
<name>Hypertino</name>
<url>https://github.com/hypertino</url>
</developer>
</developers>
// Sonatype credentials
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
// pgp keys and credentials
pgpSecretRing := file("./travis/script/ht-oss-private.asc")
pgpPublicRing := file("./travis/script/ht-oss-public.asc")
usePgpKeyHex("F8CDEF49B0EDEDCC")
pgpPassphrase := Option(System.getenv().get("oss_gpg_passphrase")).map(_.toCharArray)