Skip to content

Commit

Permalink
fix: Allow scripted to go through
Browse files Browse the repository at this point in the history
**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.
  • Loading branch information
eed3si9n committed Sep 15, 2024
1 parent 97aaf6d commit b1cdcd9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main/src/main/scala/sbt/ScriptedPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b1cdcd9

Please sign in to comment.