[2.x] add no-op addDependencyTreePlugin shim for migration

This commit is contained in:
Matthias Kurz 2026-04-11 20:17:45 +02:00
parent 542591ea20
commit d8d27fe4c1
No known key found for this signature in database
GPG Key ID: 0B4AAA92F1117EF5
4 changed files with 15 additions and 0 deletions

View File

@ -4747,6 +4747,13 @@ trait BuildExtra extends BuildCommon with DefExtra {
Seq(compose(onLoad, add), compose(onUnload, remove))
}
/**
* Adds dependency tree plugin.
*/
@deprecated("dependencyTree is built into sbt 2.x; this is now a no-op", "2.0.0")
def addDependencyTreePlugin: Setting[Seq[ModuleID]] =
libraryDependencies ++= Nil
/**
* Adds Maven resolver plugin.
*/

View File

@ -0,0 +1,5 @@
import sbtassembly.AssemblyPlugin.autoImport._
assembly / assemblyJarName := "plugin-survived.jar"
TaskKey[Unit]("check") := ()

View File

@ -0,0 +1,2 @@
addDependencyTreePlugin
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.1")

View File

@ -0,0 +1 @@
> check