mirror of https://github.com/sbt/sbt.git
[2.x] add no-op addDependencyTreePlugin shim for migration (#9067)
This commit is contained in:
parent
53b36840bb
commit
e515decfc5
|
|
@ -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
|
||||
Loading…
Reference in New Issue