[2.x] add no-op addDependencyTreePlugin shim for migration (#9067)

This commit is contained in:
Matthias Kurz
2026-04-12 14:02:05 -04:00
committed by GitHub
parent 53b36840bb
commit e515decfc5
4 changed files with 15 additions and 0 deletions
+7
View File
@@ -4750,6 +4750,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.
*/
@@ -0,0 +1,5 @@
import sbtassembly.AssemblyPlugin.autoImport._
assembly / assemblyJarName := "plugin-survived.jar"
TaskKey[Unit]("check") := ()
@@ -0,0 +1,2 @@
addDependencyTreePlugin
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.3.1")
@@ -0,0 +1 @@
> check