-
Notifications
You must be signed in to change notification settings - Fork 6
/
publish.sbt
47 lines (43 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
46
47
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")
}
publishMavenStyle := true
publishArtifact in Test := false
pomIncludeRepository := { _ => false }
pomExtra := (
<parent>
<groupId>org.sonatype.oss</groupId>
<artifactId>oss-parent</artifactId>
<version>7</version>
</parent>
<url>https://github.com/dbtsai/lbfgs</url>
<licenses>
<license>
<name>Apache License 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
<license>
<name>GNU General Public License (GPL)</name>
<url>http://www.gnu.org/licenses/gpl.html</url>
</license>
</licenses>
<scm>
<url>[email protected]:dbtsai/lbfgs.git</url>
<connection>scm:git:git://github.com/dbtsai/lbfgs.git</connection>
</scm>
<developers>
<developer>
<id>robert.dodier</id>
<name>Robert Dodier</name>
</developer>
<developer>
<id>dbtsai</id>
<name>DB Tsai</name>
<url>http://www.dbtsai.com/</url>
</developer>
</developers>)