Add OSS publishing to runtime
This commit is contained in:
parent
86deb83f82
commit
3c5dbf1165
2 changed files with 32 additions and 0 deletions
|
@ -27,6 +27,36 @@ object Build extends sbt.Build {
|
||||||
id = "runtime",
|
id = "runtime",
|
||||||
base = file("runtime")
|
base = file("runtime")
|
||||||
).settings(publishArtifact := true)
|
).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
|
.settings(crossPaths := false) // disable outputting the _<scala-version> suffix
|
||||||
|
|
||||||
lazy val examples =
|
lazy val examples =
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2")
|
addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.5.2")
|
||||||
|
|
||||||
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")
|
addSbtPlugin("net.virtual-void" % "sbt-dependency-graph" % "0.7.4")
|
||||||
|
|
||||||
|
addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3")
|
||||||
|
|
Loading…
Reference in a new issue