Eugene Yokota 2020-05-28 01:00:46 -04:00
parent e66282433a
commit 2bebee4dfe
2 changed files with 8 additions and 16 deletions

View File

@ -40,7 +40,6 @@ object CoursierInputsTasks {
private def coursierProject0(
projId: ModuleID,
dependencies: Seq[ModuleID],
excludeDeps: Seq[InclExclRule],
configurations: Seq[sbt.librarymanagement.Configuration],
sv: String,
sbv: String,
@ -50,9 +49,7 @@ object CoursierInputsTasks {
log: Logger
): CProject = {
val exclusions0 = Inputs.exclusions(excludeDeps, sv, sbv, log)
val configMap = Inputs.configExtends(configurations)
val configMap = Inputs.configExtendsSeq(configurations).toMap
val proj0 = FromSbt.project(
projId,
@ -61,18 +58,14 @@ object CoursierInputsTasks {
sv,
sbv
)
val proj1 = proj0.withDependencies(proj0.dependencies.map {
case (config, dep) =>
(config, dep.withExclusions(dep.exclusions ++ exclusions0))
})
val proj2 = auOpt match {
val proj1 = auOpt match {
case Some(au) =>
val props = proj1.properties :+ ("info.apiURL" -> au.toString)
proj1.withProperties(props)
case _ => proj1
val props = proj0.properties :+ ("info.apiURL" -> au.toString)
proj0.withProperties(props)
case _ => proj0
}
proj2.withInfo(
proj2.info.withDescription(description).withHomePage(homepage.fold("")(_.toString))
proj1.withInfo(
proj1.info.withDescription(description).withHomePage(homepage.fold("")(_.toString))
)
}
@ -81,7 +74,6 @@ object CoursierInputsTasks {
coursierProject0(
projectID.value,
allDependencies.value,
allExcludeDependencies.value,
ivyConfigurations.value,
scalaVersion.value,
scalaBinaryVersion.value,

View File

@ -76,7 +76,7 @@ object Dependencies {
def addSbtZincCompile = addSbtModule(sbtZincPath, "zincCompileJVM2_12", zincCompile)
def addSbtZincCompileCore = addSbtModule(sbtZincPath, "zincCompileCoreJVM2_12", zincCompileCore)
val lmCoursierShaded = "io.get-coursier" %% "lm-coursier-shaded" % "2.0.0-RC6-4"
val lmCoursierShaded = "io.get-coursier" %% "lm-coursier-shaded" % "2.0.0-RC6-8"
def sjsonNew(n: String) =
Def.setting("com.eed3si9n" %% n % "0.9.0") // contrabandSjsonNewVersion.value