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

This commit is contained in:
Matthias Kurz 2026-04-12 20:02:05 +02:00 committed by GitHub
parent 53b36840bb
commit e515decfc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 15 additions and 0 deletions

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.
*/

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