-
Notifications
You must be signed in to change notification settings - Fork 10
/
publishing.sbt
54 lines (45 loc) · 1.47 KB
/
publishing.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
/*
* Maven Central Publishing - Sonatype OSSRH
*
* For reference, see:
* http://www.scala-sbt.org/0.13/docs/Publishing.html
* http://www.scala-sbt.org/0.13/docs/Using-Sonatype.html
*/
import SonatypeKeys._
sonatypeSettings
credentials ++= {
val ivyCredentials = Path.userHome / ".ivy2" / ".credentials"
if (ivyCredentials.canRead) Seq(Credentials(ivyCredentials))
else Nil
}
organizationName := "Keen IO"
organizationHomepage := Some(url("https://keen.io/"))
publishMavenStyle := true
publishArtifact in Test := false
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")
}
licenses := Seq("MIT License" -> url("http://www.opensource.org/licenses/mit-license.php"))
scmInfo := Some(
ScmInfo(
url("https://github.com/keenlabs/KeenClient-Scala"),
"scm:git:https://github.com/keenlabs/KeenClient-Scala.git",
Some("scm:git:[email protected]:keenlabs/KeenClient-Scala.git")
)
)
// Allow other projects' Scaladoc to link to ours if they use `autoAPIMappings := true`
apiURL := Some(url(s"http://keenlabs.github.io/KeenClient-Scala/api/${version.value}/"))
// Central doesn't allow any external repository sources.
pomIncludeRepository := { _ => false }
pomExtra :=
<developers>
<developer>
<id>keenlabs</id>
<name>Keen IO</name>
<email></email>
</developer>
</developers>