diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | project/Build.scala | 13 | ||||
-rw-r--r-- | project/bintray.sbt | 1 | ||||
-rw-r--r-- | samples/basic/project/plugins.sbt | 2 |
4 files changed, 13 insertions, 5 deletions
@@ -30,7 +30,7 @@ The reason for dividing a project into two subprojects is two-fold: it enables f ## Usage Add plugin dependency. In `project/plugins.sbt`: ```scala -addSbtPlugin("ch.jodersky" % "sbt-jni" % "0.3") +addSbtPlugin("ch.jodersky" % "sbt-jni" % "0.3.0") ``` Define sub-projects for JVM and native sources. In `myproject/build.sbt`: diff --git a/project/Build.scala b/project/Build.scala index 9c9b917..6fe041c 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -1,13 +1,16 @@ import sbt._ import sbt.Keys._ +import bintray.BintrayPlugin.autoImport._ + object JniBuild extends Build { val scalaVersions = List("2.11.7", "2.12.0-M3", "2.10.5") val commonSettings = Seq( - version := "0.3-SNAPSHOT", + version := "0.3.0", organization := "ch.jodersky", + licenses := Seq(("BSD New", url("http://opensource.org/licenses/BSD-3-Clause"))), scalacOptions ++= Seq("-deprecation", "-feature") ) @@ -19,7 +22,8 @@ object JniBuild extends Build { ), settings = Seq( publish := {}, - publishLocal := {} + publishLocal := {}, + publishTo := Some(Resolver.file("Unused transient repository", target.value / "unusedrepo")) // make sbt-pgp happy ) ) @@ -49,7 +53,10 @@ object JniBuild extends Build { IO.write(file, src) Seq(file) }.taskValue, - libraryDependencies += "org.ow2.asm" % "asm" % "5.0.4" + libraryDependencies += "org.ow2.asm" % "asm" % "5.0.4", + publishMavenStyle := false, + bintrayRepository := "sbt-plugins", + bintrayOrganization in bintray := None ) ) diff --git a/project/bintray.sbt b/project/bintray.sbt new file mode 100644 index 0000000..8dd913f --- /dev/null +++ b/project/bintray.sbt @@ -0,0 +1 @@ +addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0") diff --git a/samples/basic/project/plugins.sbt b/samples/basic/project/plugins.sbt index c683b30..cae4bc2 100644 --- a/samples/basic/project/plugins.sbt +++ b/samples/basic/project/plugins.sbt @@ -1 +1 @@ -addSbtPlugin("ch.jodersky" % "sbt-jni" % "0.3-SNAPSHOT") +addSbtPlugin("ch.jodersky" % "sbt-jni" % "0.3.0") |