diff --git a/project/build.scala b/project/build.scala index adb05b0..bab68aa 100644 --- a/project/build.scala +++ b/project/build.scala @@ -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 := ( + https://dwrensha.github.io/capnproto-java/index.html + + + BSD-style + http://www.opensource.org/licenses/bsd-license.php + repo + + + + git@github.com:dwrensha/capnproto-java.git + scm:git:git@github.com:dwrensha/capnproto-java.git + + + + dwrensha + David Renshaw + + )) .settings(crossPaths := false) // disable outputting the _ suffix lazy val examples = diff --git a/project/plugins.sbt b/project/plugins.sbt index dcb18cc..bc26f28 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -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")