mirror of https://github.com/sbt/sbt.git
set "scriptedBatchExecution := false" if sbt 0.13
This commit is contained in:
parent
b911bad4ee
commit
fd967d1215
|
|
@ -16,6 +16,7 @@ import sbt.nio.Keys._
|
|||
import sbt.Project._
|
||||
import sbt.internal.inc.ModuleUtilities
|
||||
import sbt.internal.inc.classpath.ClasspathUtil
|
||||
import sbt.internal.librarymanagement.cross.CrossVersionUtil
|
||||
import sbt.internal.util.complete.{ DefaultParsers, Parser }
|
||||
import sbt.io._
|
||||
import sbt.io.syntax._
|
||||
|
|
@ -78,7 +79,14 @@ object ScriptedPlugin extends AutoPlugin {
|
|||
scriptedClasspath := getJars(ScriptedConf).value,
|
||||
scriptedTests := scriptedTestsTask.value,
|
||||
scriptedParallelInstances := 1,
|
||||
scriptedBatchExecution := true,
|
||||
scriptedBatchExecution := {
|
||||
CrossVersionUtil.binarySbtVersion(scriptedSbt.value) match {
|
||||
case "0.13" =>
|
||||
false
|
||||
case _ =>
|
||||
true
|
||||
}
|
||||
},
|
||||
scriptedRun := scriptedRunTask.value,
|
||||
scriptedDependencies := {
|
||||
def use[A](@deprecated("unused", "") x: A*): Unit = () // avoid unused warnings
|
||||
|
|
|
|||
|
|
@ -1,5 +1 @@
|
|||
lazy val root = (project in file("."))
|
||||
.settings(
|
||||
sbtPlugin := true,
|
||||
resolvers += Resolver.typesafeIvyRepo("releases")
|
||||
)
|
||||
enablePlugins(SbtPlugin)
|
||||
|
|
|
|||
|
|
@ -1,5 +1 @@
|
|||
libraryDependencies += {
|
||||
"org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
|
||||
}
|
||||
|
||||
offline := true
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
# This tests that this sbt scripted plugin can launch the previous one
|
||||
|
||||
> ++2.10.6
|
||||
> ^^0.13.16-M1
|
||||
> ^^0.13.18
|
||||
|
||||
$ copy-file changes/A.scala src/sbt-test/a/b/A.scala
|
||||
> scripted
|
||||
Loading…
Reference in New Issue