From e841be9396ccb51806a7fe009134d6f04620f65a Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Sat, 26 Aug 2017 16:16:42 -0700 Subject: Reword deprecation warning --- README.md | 8 +++++--- .../ch/jodersky/sbt/jni/plugins/RunDependencyFixPlugin.scala | 7 ++++--- 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( % Runtime)` when fixed.", "1.3.0") def dependsOnRun(other: Project) = { project.settings(dependsOnRunSettings(other): _*) } -- cgit v1.2.3