Resolve `scripted-sbt-redux` to run scripted

Previously, in sbt 2, the Scripted plugin was not resolving any module
that would provide it with the `ScriptedTests` object, and could
therefore not run scripted tests.

With this patch, `scripted-sbt-redux` will be resolved and added to the
classloader that's used to load `sbt.scriptedtest.ScriptedTests`.
This commit is contained in:
Martin Duhem 2024-02-02 14:28:56 +01:00
parent dd0d43bab4
commit 6679067bcb
No known key found for this signature in database
GPG Key ID: 7AED2383601007B6
1 changed files with 1 additions and 0 deletions

View File

@ -79,6 +79,7 @@ object ScriptedPlugin extends AutoPlugin {
)
case Some((2, _)) =>
Seq(
"org.scala-sbt" %% "scripted-sbt-redux" % 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)"