mirror of https://github.com/sbt/sbt.git
Have sbt-lm-coursier rely on lm-coursier-shaded by default
This commit is contained in:
parent
3d3ca879e9
commit
5739ea7b60
16
build.sbt
16
build.sbt
|
|
@ -64,10 +64,19 @@ lazy val `sbt-coursier-shared` = project
|
|||
testFrameworks += new TestFramework("utest.runner.Framework")
|
||||
)
|
||||
|
||||
lazy val `sbt-coursier-shared-shaded` = project
|
||||
.in(file("modules/sbt-coursier-shared/target/shaded-module"))
|
||||
.dependsOn(`lm-coursier-shaded`)
|
||||
.settings(
|
||||
plugin,
|
||||
generatePropertyFile,
|
||||
unmanagedSourceDirectories.in(Compile) := unmanagedSourceDirectories.in(Compile).in(`sbt-coursier-shared`).value
|
||||
)
|
||||
|
||||
lazy val `sbt-lm-coursier` = project
|
||||
.in(file("modules/sbt-lm-coursier"))
|
||||
.enablePlugins(ScriptedPlugin)
|
||||
.dependsOn(`sbt-coursier-shared`)
|
||||
.dependsOn(`sbt-coursier-shared-shaded`)
|
||||
.settings(
|
||||
plugin,
|
||||
sbtTestDirectory := sbtTestDirectory.in(`sbt-coursier`).value,
|
||||
|
|
@ -76,8 +85,8 @@ lazy val `sbt-lm-coursier` = project
|
|||
|
||||
// TODO Get those automatically
|
||||
// (but shouldn't scripted itself handle that…?)
|
||||
publishLocal.in(`lm-coursier`).value
|
||||
publishLocal.in(`sbt-coursier-shared`).value
|
||||
publishLocal.in(`lm-coursier-shaded`).value
|
||||
publishLocal.in(`sbt-coursier-shared-shaded`).value
|
||||
}
|
||||
)
|
||||
|
||||
|
|
@ -145,6 +154,7 @@ lazy val `sbt-coursier-root` = project
|
|||
`lm-coursier-shaded`,
|
||||
`sbt-coursier`,
|
||||
`sbt-coursier-shared`,
|
||||
`sbt-coursier-shared-shaded`,
|
||||
`sbt-lm-coursier`,
|
||||
`sbt-pgp-coursier`,
|
||||
`sbt-shading`
|
||||
|
|
|
|||
|
|
@ -32,13 +32,19 @@ updateSbtClassifiersCheck := {
|
|||
.toSeq
|
||||
.flatten
|
||||
|
||||
def ensureHasArtifact(org: String, name: String) =
|
||||
def ensureHasArtifact(orgName: (String, String)*) =
|
||||
assert(
|
||||
artifacts(org, name).exists(_._2.getName.endsWith("-sources.jar")),
|
||||
s"$org:$name not found"
|
||||
orgName.exists {
|
||||
case (org, name) =>
|
||||
artifacts(org, name).exists(_._2.getName.endsWith("-sources.jar"))
|
||||
},
|
||||
s"Any of $orgName not found"
|
||||
)
|
||||
|
||||
ensureHasArtifact("org.scala-lang", "scala-library")
|
||||
ensureHasArtifact("io.get-coursier", "coursier-core_" + scalaBinaryVersion.value)
|
||||
ensureHasArtifact("io.get-coursier", "lm-coursier_" + scalaBinaryVersion.value)
|
||||
ensureHasArtifact("org.scala-lang" -> "scala-library")
|
||||
ensureHasArtifact("org.scala-lang.modules" -> s"scala-xml_${scalaBinaryVersion.value}")
|
||||
ensureHasArtifact(
|
||||
"io.get-coursier" -> s"lm-coursier_${scalaBinaryVersion.value}",
|
||||
"io.get-coursier" -> s"lm-coursier-shaded_${scalaBinaryVersion.value}"
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue