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:
Alexandre Archambault 2019-03-15 19:02:44 +01:00 committed by GitHub
parent 1c28e8fb6b
commit b8befa4ec7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 1 deletions

View File

@ -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,

View File

@ -0,0 +1 @@
scalaVersion := "2.12.8"

View File

@ -0,0 +1,2 @@
addSbtPlugin("ch.epfl.scala" % "sbt-bloop" % "1.2.5")
addSbtPlugin("org.scalameta" % "sbt-metals" % "0.4.4")

View File

@ -0,0 +1 @@
addSbtCoursier

View File

@ -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
}

View File

@ -0,0 +1,2 @@
> metalsEnable
> bloopInstall