-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpublish.sbt
58 lines (47 loc) · 1.62 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
51
52
53
54
55
56
57
58
// 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/InnovaCo/binders-cassandra</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]:InnovaCo/binders-cassandra.git</url>
<connection>scm:git:[email protected]:InnovaCo/binders-cassandra.git</connection>
</scm>
<developers>
<developer>
<id>InnovaCo</id>
<name>Innova Co S.a r.l</name>
<url>https://github.com/InnovaCo</url>
</developer>
<developer>
<id>maqdev</id>
<name>Maga Abdurakhmanov</name>
<url>https://github.com/maqdev</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("inn-oss-private.asc")
pgpPublicRing := file("inn-oss-public.asc")
usePgpKeyHex("5DF2525FA9D102B7")
pgpPassphrase := Option(System.getenv().get("oss_gpg_passphrase")).map(_.toCharArray)