Add OSS publishing to runtime

This commit is contained in:
dvdreddy 2015-02-19 18:27:37 -08:00
parent 86deb83f82
commit 3c5dbf1165
2 changed files with 32 additions and 0 deletions

View file

@ -27,6 +27,36 @@ object Build extends sbt.Build {
id = "runtime",
base = file("runtime")
).settings(publishArtifact := true)
.settings(publishMavenStyle := true)
.settings(organization := "org.capnproto")
.settings(autoScalaLibrary := false)
.settings(autoScalaLibrary in test := false)
.settings(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")
})
.settings(pomExtra := (
<url>https://dwrensha.github.io/capnproto-java/index.html</url>
<licenses>
<license>
<name>BSD-style</name>
<url>http://www.opensource.org/licenses/bsd-license.php</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>git@github.com:dwrensha/capnproto-java.git</url>
<connection>scm:git:git@github.com:dwrensha/capnproto-java.git</connection>
</scm>
<developers>
<developer>
<id>dwrensha</id>
<name>David Renshaw</name>
</developer>
</developers>))
.settings(crossPaths := false) // disable outputting the _<scala-version> suffix
lazy val examples =

View file

@ -1,3 +1,5 @@
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2")
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")