aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2017-08-26 16:16:42 -0700
committerJakob Odersky <jakob@odersky.com>2017-08-26 16:16:42 -0700
commite841be9396ccb51806a7fe009134d6f04620f65a (patch)
treeedb675e43cd0952073ea9c985772a765b51f95c5
parent5487cbf3f78520f9414b60dd019fd4cd8dfa277e (diff)
downloadsbt-jni-e841be9396ccb51806a7fe009134d6f04620f65a.tar.gz
sbt-jni-e841be9396ccb51806a7fe009134d6f04620f65a.tar.bz2
sbt-jni-e841be9396ccb51806a7fe009134d6f04620f65a.zip
Reword deprecation warning
-rw-r--r--README.md8
-rw-r--r--plugin/src/main/scala/ch/jodersky/sbt/jni/plugins/RunDependencyFixPlugin.scala7
2 files changed, 9 insertions, 6 deletions
diff --git a/README.md b/README.md
index 8219139..536cd0d 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,9 @@
[![Build Status](https://travis-ci.org/jodersky/sbt-jni.svg?branch=master)](https://travis-ci.org/jodersky/sbt-jni)
-[![Download](https://api.bintray.com/packages/jodersky/sbt-plugins/sbt-jni/images/download.svg?version=1.2.6)](https://bintray.com/jodersky/sbt-plugins/sbt-jni/1.2.6/link)
-*This plugin is for sbt version 0.13. Checkout the `sbt-1` branch for a preview that supports sbt version 1.*
+sbt version | plugin version
+------------+---------------
+0.13.x | [![Download](https://api.bintray.com/packages/jodersky/sbt-plugins/sbt-jni/images/download.svg?version=1.2.6)](https://bintray.com/jodersky/sbt-plugins/sbt-jni/1.2.6/link)
+1.0.x | [![Download](https://api.bintray.com/packages/jodersky/sbt-plugins/sbt-jni/images/download.svg)](https://bintray.com/jodersky/sbt-plugins/sbt-jni/_latestVersion)
# sbt-jni
@@ -136,7 +138,7 @@ This plugin packages native libraries produced by JniNative in a way that they c
```scala
lazy val core = project in file("myproject-core"). // regular scala code with @native methods
- dependsOn(native % Runtime) // remove this if `core` is a library, leave choice to end-user
+ dependsOnRun(native) // remove this if `core` is a library, leave choice to end-user
lazy val native = project in file("myproject-native"). // native code and build script
enablePlugin(JniNative) // JniNative needs to be explicitly enabled
diff --git a/plugin/src/main/scala/ch/jodersky/sbt/jni/plugins/RunDependencyFixPlugin.scala b/plugin/src/main/scala/ch/jodersky/sbt/jni/plugins/RunDependencyFixPlugin.scala
index 921caac..3c4f92c 100644
--- a/plugin/src/main/scala/ch/jodersky/sbt/jni/plugins/RunDependencyFixPlugin.scala
+++ b/plugin/src/main/scala/ch/jodersky/sbt/jni/plugins/RunDependencyFixPlugin.scala
@@ -4,8 +4,8 @@ import sbt._
import sbt.Keys._
import java.io.File
-/** Adds an extension method `dependsOnRun` to projects, to work around an sbt
- * bug https://github.com/sbt/sbt/issues/3425 */
+/** Adds the extension method `dependsOnRun` to projects, to work around an sbt
+ * bug. */
object RunDependencyFixPlugin extends AutoPlugin {
override def requires = plugins.CorePlugin
@@ -27,7 +27,8 @@ object RunDependencyFixPlugin extends AutoPlugin {
)
implicit class RichProject(project: Project) {
- @deprecated("Temporary fix for https://github.com/sbt/sbt/issues/3425", "1.3.0")
+ @deprecated("Workaround for https://github.com/sbt/sbt/issues/3425. " +
+ "Use `dependsOn(<project> % Runtime)` when fixed.", "1.3.0")
def dependsOnRun(other: Project) = {
project.settings(dependsOnRunSettings(other): _*)
}