mirror of https://github.com/sbt/sbt.git
fix: Allow scripted to go through
**Problem** Currently scripted does version checking to block sbt 2.x plugins to be cross published from sbt 1.x. **Solution** Remove the sbt version matching.
This commit is contained in:
parent
e3b628621f
commit
31dd85b7ba
|
|
@ -71,13 +71,11 @@ object ScriptedPlugin extends AutoPlugin {
|
|||
"org.scala-sbt" % "scripted-sbt" % scriptedSbt.value % ScriptedConf,
|
||||
"org.scala-sbt" % "sbt-launch" % scriptedSbt.value % ScriptedLaunchConf
|
||||
)
|
||||
case Some((1, _)) =>
|
||||
case _ =>
|
||||
Seq(
|
||||
"org.scala-sbt" %% "scripted-sbt" % scriptedSbt.value % ScriptedConf,
|
||||
"org.scala-sbt" % "sbt-launch" % scriptedSbt.value % ScriptedLaunchConf
|
||||
)
|
||||
case Some((x, y)) => sys error s"Unknown sbt version ${scriptedSbt.value} ($x.$y)"
|
||||
case None => sys error s"Unknown sbt version ${scriptedSbt.value}"
|
||||
}),
|
||||
scriptedClasspath := getJars(ScriptedConf).value,
|
||||
scriptedTests := scriptedTestsTask.value,
|
||||
|
|
|
|||
Loading…
Reference in New Issue