mirror of https://github.com/sbt/sbt.git
Merge pull request #6351 from steinybot/scripted-publish-deps
Publish all plugin dependencies
This commit is contained in:
commit
ff6cbf2e1f
|
|
@ -14,6 +14,7 @@ import sbt.Def._
|
|||
import sbt.Keys._
|
||||
import sbt.nio.Keys._
|
||||
import sbt.Project._
|
||||
import sbt.ScopeFilter.Make._
|
||||
import sbt.SlashSyntax0._
|
||||
import sbt.internal.inc.ModuleUtilities
|
||||
import sbt.internal.inc.classpath.ClasspathUtil
|
||||
|
|
@ -94,7 +95,7 @@ object ScriptedPlugin extends AutoPlugin {
|
|||
scriptedDependencies := {
|
||||
def use[A](@deprecated("unused", "") x: A*): Unit = () // avoid unused warnings
|
||||
val analysis = (Test / Keys.compile).value
|
||||
val pub = (publishLocal).value
|
||||
val pub = publishLocal.all(ScopeFilter(projects = inDependencies(ThisProject))).value
|
||||
use(analysis, pub)
|
||||
},
|
||||
scripted := scriptedTask.evaluated,
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
lazy val root = (project in file("."))
|
||||
.enablePlugins(SbtPlugin)
|
||||
.dependsOn(lib)
|
||||
|
||||
lazy val lib = project in file("lib")
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
libraryDependencies += {
|
||||
"org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
$ copy-file test-files/test src/sbt-test/group/name/test
|
||||
> scripted
|
||||
|
|
@ -0,0 +1 @@
|
|||
> compile
|
||||
Loading…
Reference in New Issue