mirror of
https://github.com/sbt/sbt.git
synced 2026-09-06 17:40:06 +02:00
[2.x] add no-op addDependencyTreePlugin shim for migration (#9067)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user