diff options
author | Jakob Odersky <jakob@odersky.com> | 2017-08-28 17:44:44 -0700 |
---|---|---|
committer | Jakob Odersky <jakob@odersky.com> | 2017-08-28 17:44:44 -0700 |
commit | 1f31f01f9c0ad73a70a9e3dd23c9d8ec27fd1792 (patch) | |
tree | 4d5efe0694cd5ce1f84bc418f65283ebea088e0d /plugin/src/main | |
parent | 4fc072c49c3b896ab31c1db29228033a98f9a838 (diff) | |
download | sbt-jni-1f31f01f9c0ad73a70a9e3dd23c9d8ec27fd1792.tar.gz sbt-jni-1f31f01f9c0ad73a70a9e3dd23c9d8ec27fd1792.tar.bz2 sbt-jni-1f31f01f9c0ad73a70a9e3dd23c9d8ec27fd1792.zip |
Upgrade to sbt 1.0.1v1.3.0
Diffstat (limited to 'plugin/src/main')
-rw-r--r-- | plugin/src/main/scala/ch/jodersky/sbt/jni/plugins/RunDependencyFixPlugin.scala | 44 |
1 files changed, 0 insertions, 44 deletions
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 deleted file mode 100644 index 3c4f92c..0000000 --- a/plugin/src/main/scala/ch/jodersky/sbt/jni/plugins/RunDependencyFixPlugin.scala +++ /dev/null @@ -1,44 +0,0 @@ -package ch.jodersky.sbt.jni.plugins - -import sbt._ -import sbt.Keys._ -import java.io.File - -/** Adds the extension method `dependsOnRun` to projects, to work around an sbt - * bug. */ -object RunDependencyFixPlugin extends AutoPlugin { - - override def requires = plugins.CorePlugin - override def trigger = allRequirements - - object autoImport { - - val runClasspath = taskKey[Seq[sbt.internal.util.Attributed[File]]]("Classpath used in run task") - - def dependsOnRunSettings(project: Project) = Seq( - runClasspath in Compile ++= (runClasspath in Compile in project).value, - run := { - Defaults.runTask( - runClasspath in Compile, - mainClass in Compile in run, - runner in run - ).evaluated - } - ) - - implicit class RichProject(project: Project) { - @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): _*) - } - } - - } - import autoImport._ - - override def projectSettings = Seq( - runClasspath in Compile := (fullClasspath in Compile).value - ) - -} |