mirror of https://github.com/sbt/sbt.git
Tweak global plugins handling (#47)
Seems the changes of
3eb210eb1b
were missing bits to handle the configurations of the global-plugins
project.
This commit is contained in:
parent
1c28e8fb6b
commit
b8befa4ec7
|
|
@ -128,12 +128,18 @@ object InputsTasks {
|
|||
.toVector
|
||||
.map {
|
||||
case (module, v) =>
|
||||
val configurations = v
|
||||
.getConfigurations
|
||||
.map { c =>
|
||||
Configuration(c.getName) -> c.getExtends.map(Configuration(_)).toSeq
|
||||
}
|
||||
.toMap
|
||||
val deps = v.getDependencies.flatMap(dependencyFromIvy)
|
||||
Project(
|
||||
module,
|
||||
v.getModuleRevisionId.getRevision,
|
||||
deps,
|
||||
Map(),
|
||||
configurations,
|
||||
None,
|
||||
Nil,
|
||||
Nil,
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
scalaVersion := "2.12.8"
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.2.5")
|
||||
addSbtPlugin("org.scalameta" % "sbt-metals" % "0.4.4")
|
||||
|
|
@ -0,0 +1 @@
|
|||
addSbtCoursier
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
addSbtPlugin {
|
||||
|
||||
val name = sys.props.getOrElse(
|
||||
"plugin.name",
|
||||
sys.error("plugin.name Java property not set")
|
||||
)
|
||||
val version = sys.props.getOrElse(
|
||||
"plugin.version",
|
||||
sys.error("plugin.version Java property not set")
|
||||
)
|
||||
|
||||
"io.get-coursier" % name % version
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
> metalsEnable
|
||||
> bloopInstall
|
||||
Loading…
Reference in New Issue