forked from playframework/play-slick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.sbt
45 lines (41 loc) · 1.23 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
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<scm>
<url>[email protected]:freekh/play-slick.git</url>
<connection>scm:git:[email protected]:freekh/play-slick.git</connection>
</scm>
<developers>
<developer>
<id>freekh</id>
<name>Fredrik Ekholdt</name>
<url>http://ch.linkedin.com/in/freekh</url>
</developer>
<developer>
<id>ms-tg</id>
<name>Marc Siegel</name>
<email>[email protected]</email>
<url>https://github.com/ms-tg</url>
</developer>
<developer>
<id>loicd</id>
<name>Loic Descotte</name>
<email>[email protected]</email>
<url>https://github.com/loicdescotte</url>
</developer>
<developer>
<id>cvogt</id>
<name>Jan Christopher Vogt</name>
<email>[email protected]</email>
<url>https://github.com/cvogt</url>
</developer>
</developers>
)
publishTo <<= version { v: String =>
val nexus = "https://oss.sonatype.org/"
if (v.trim.endsWith("SNAPSHOT"))
Some("snapshots" at nexus + "content/repositories/snapshots")
else
Some("releases" at nexus + "service/local/staging/deploy/maven2")
}