2015-11-21 14:23:06 +01:00
|
|
|
|
2017-05-15 15:32:47 +02:00
|
|
|
import Settings._
|
2018-10-17 14:18:03 +02:00
|
|
|
|
|
|
|
|
inThisBuild(List(
|
|
|
|
|
organization := "io.get-coursier",
|
2018-11-05 10:35:18 +01:00
|
|
|
homepage := Some(url("https://github.com/coursier/sbt-coursier")),
|
2018-10-17 14:18:03 +02:00
|
|
|
licenses := Seq("Apache 2.0" -> url("http://opensource.org/licenses/Apache-2.0")),
|
|
|
|
|
developers := List(
|
|
|
|
|
Developer(
|
|
|
|
|
"alexarchambault",
|
|
|
|
|
"Alexandre Archambault",
|
|
|
|
|
"",
|
|
|
|
|
url("https://github.com/alexarchambault")
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
))
|
2016-02-16 01:03:00 +01:00
|
|
|
|
2020-09-14 15:58:19 +02:00
|
|
|
val coursierVersion0 = "2.0.0-RC6-26"
|
2019-04-25 16:28:11 +02:00
|
|
|
|
2018-11-20 10:16:08 +01:00
|
|
|
lazy val `lm-coursier` = project
|
|
|
|
|
.in(file("modules/lm-coursier"))
|
2017-12-11 01:25:50 +01:00
|
|
|
.settings(
|
2018-11-14 14:52:36 +01:00
|
|
|
shared,
|
2019-04-25 17:16:49 +02:00
|
|
|
Mima.settings,
|
2019-07-02 14:01:08 +02:00
|
|
|
Mima.lmCoursierFilters,
|
2018-09-28 17:55:42 +02:00
|
|
|
libraryDependencies ++= Seq(
|
2019-04-25 16:28:11 +02:00
|
|
|
"io.get-coursier" %% "coursier" % coursierVersion0,
|
2020-04-27 18:39:52 +02:00
|
|
|
"io.github.alexarchambault" %% "data-class" % "0.2.3" % Provided,
|
2018-11-20 10:31:34 +01:00
|
|
|
// We depend on librarymanagement-ivy rather than just
|
|
|
|
|
// librarymanagement-core to handle the ModuleDescriptor passed
|
|
|
|
|
// to DependencyResolutionInterface.update, which is an
|
|
|
|
|
// IvySbt#Module (seems DependencyResolutionInterface.moduleDescriptor
|
|
|
|
|
// is ignored).
|
2020-07-08 17:09:10 +02:00
|
|
|
"org.scala-sbt" %% "librarymanagement-ivy" % "1.3.4",
|
2020-09-04 14:20:58 +02:00
|
|
|
"org.scalatest" %% "scalatest" % "3.2.2" % Test
|
2019-10-18 13:39:03 +02:00
|
|
|
)
|
2019-04-24 18:20:32 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
lazy val `lm-coursier-shaded` = project
|
|
|
|
|
.in(file("modules/lm-coursier/target/shaded-module"))
|
|
|
|
|
.enablePlugins(ShadingPlugin)
|
|
|
|
|
.settings(
|
|
|
|
|
shared,
|
2019-05-22 21:19:46 +02:00
|
|
|
Mima.settings,
|
2019-07-02 14:01:08 +02:00
|
|
|
Mima.lmCoursierFilters,
|
|
|
|
|
Mima.lmCoursierShadedFilters,
|
2019-04-24 18:20:32 +02:00
|
|
|
unmanagedSourceDirectories.in(Compile) := unmanagedSourceDirectories.in(Compile).in(`lm-coursier`).value,
|
2020-05-12 00:16:06 +02:00
|
|
|
shadedModules += "io.get-coursier" %% "coursier",
|
|
|
|
|
validNamespaces += "lmcoursier",
|
|
|
|
|
shadingRules ++= {
|
|
|
|
|
val toShade = Seq(
|
|
|
|
|
"coursier",
|
|
|
|
|
"shapeless",
|
|
|
|
|
"argonaut",
|
|
|
|
|
"org.fusesource",
|
|
|
|
|
"macrocompat",
|
|
|
|
|
"io.github.alexarchambault.windowsansi"
|
|
|
|
|
)
|
|
|
|
|
for (ns <- toShade)
|
|
|
|
|
yield ShadingRule.moveUnder(ns, "lmcoursier.internal.shaded")
|
|
|
|
|
},
|
2019-04-24 18:20:32 +02:00
|
|
|
libraryDependencies ++= Seq(
|
2020-05-12 00:16:06 +02:00
|
|
|
"io.get-coursier" %% "coursier" % coursierVersion0,
|
2020-04-27 18:39:52 +02:00
|
|
|
"io.github.alexarchambault" %% "data-class" % "0.2.3" % Provided,
|
2020-04-16 03:27:22 +02:00
|
|
|
"org.scala-lang.modules" %% "scala-xml" % "1.3.0", // depending on that one so that it doesn't get shaded
|
2020-07-08 17:09:10 +02:00
|
|
|
"org.scala-sbt" %% "librarymanagement-ivy" % "1.3.4",
|
2020-09-04 14:20:58 +02:00
|
|
|
"org.scalatest" %% "scalatest" % "3.2.2" % Test
|
2020-05-12 00:16:06 +02:00
|
|
|
)
|
2017-12-11 01:25:50 +01:00
|
|
|
)
|
|
|
|
|
|
2018-11-20 13:15:26 +01:00
|
|
|
lazy val `sbt-coursier-shared` = project
|
|
|
|
|
.in(file("modules/sbt-coursier-shared"))
|
2020-02-04 12:20:47 +01:00
|
|
|
.disablePlugins(MimaPlugin)
|
2018-11-20 13:15:26 +01:00
|
|
|
.dependsOn(`lm-coursier`)
|
|
|
|
|
.settings(
|
2018-11-20 17:17:53 +01:00
|
|
|
plugin,
|
2018-12-12 11:19:05 +01:00
|
|
|
generatePropertyFile,
|
2020-09-04 14:20:39 +02:00
|
|
|
libraryDependencies += "com.lihaoyi" %% "utest" % "0.7.5" % Test,
|
2018-11-20 17:17:53 +01:00
|
|
|
testFrameworks += new TestFramework("utest.runner.Framework")
|
2018-11-20 13:15:26 +01:00
|
|
|
)
|
|
|
|
|
|
2019-04-25 16:55:31 +02:00
|
|
|
lazy val `sbt-coursier-shared-shaded` = project
|
|
|
|
|
.in(file("modules/sbt-coursier-shared/target/shaded-module"))
|
2020-02-04 12:20:47 +01:00
|
|
|
.disablePlugins(MimaPlugin)
|
2019-04-25 16:55:31 +02:00
|
|
|
.dependsOn(`lm-coursier-shaded`)
|
|
|
|
|
.settings(
|
|
|
|
|
plugin,
|
|
|
|
|
generatePropertyFile,
|
|
|
|
|
unmanagedSourceDirectories.in(Compile) := unmanagedSourceDirectories.in(Compile).in(`sbt-coursier-shared`).value
|
|
|
|
|
)
|
|
|
|
|
|
2018-11-20 11:38:41 +01:00
|
|
|
lazy val `sbt-lm-coursier` = project
|
|
|
|
|
.in(file("modules/sbt-lm-coursier"))
|
|
|
|
|
.enablePlugins(ScriptedPlugin)
|
2020-02-04 12:20:47 +01:00
|
|
|
.disablePlugins(MimaPlugin)
|
2019-04-25 16:55:31 +02:00
|
|
|
.dependsOn(`sbt-coursier-shared-shaded`)
|
2018-11-20 11:38:41 +01:00
|
|
|
.settings(
|
|
|
|
|
plugin,
|
|
|
|
|
sbtTestDirectory := sbtTestDirectory.in(`sbt-coursier`).value,
|
|
|
|
|
scriptedDependencies := {
|
|
|
|
|
scriptedDependencies.value
|
|
|
|
|
|
|
|
|
|
// TODO Get those automatically
|
|
|
|
|
// (but shouldn't scripted itself handle that…?)
|
2019-04-25 16:55:31 +02:00
|
|
|
publishLocal.in(`lm-coursier-shaded`).value
|
|
|
|
|
publishLocal.in(`sbt-coursier-shared-shaded`).value
|
2018-11-20 11:38:41 +01:00
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
2017-02-02 02:06:04 +01:00
|
|
|
lazy val `sbt-coursier` = project
|
2018-09-28 18:36:32 +02:00
|
|
|
.in(file("modules/sbt-coursier"))
|
2018-10-17 14:18:03 +02:00
|
|
|
.enablePlugins(ScriptedPlugin)
|
2020-02-04 12:20:47 +01:00
|
|
|
.disablePlugins(MimaPlugin)
|
2018-11-20 13:15:26 +01:00
|
|
|
.dependsOn(`sbt-coursier-shared`)
|
2017-08-30 01:26:46 +02:00
|
|
|
.settings(
|
|
|
|
|
plugin,
|
2018-03-12 11:18:20 +01:00
|
|
|
scriptedDependencies := {
|
|
|
|
|
scriptedDependencies.value
|
|
|
|
|
|
|
|
|
|
// TODO Get dependency projects automatically
|
|
|
|
|
// (but shouldn't scripted itself handle that…?)
|
2018-11-20 10:16:08 +01:00
|
|
|
publishLocal.in(`lm-coursier`).value
|
2018-11-20 13:15:26 +01:00
|
|
|
publishLocal.in(`sbt-coursier-shared`).value
|
2018-03-12 11:18:20 +01:00
|
|
|
}
|
2017-08-30 01:26:46 +02:00
|
|
|
)
|
2017-01-30 22:57:24 +01:00
|
|
|
|
2018-11-05 10:35:18 +01:00
|
|
|
lazy val `sbt-coursier-root` = project
|
2018-09-28 18:36:32 +02:00
|
|
|
.in(file("."))
|
2020-02-04 12:20:47 +01:00
|
|
|
.disablePlugins(MimaPlugin)
|
2017-01-30 23:28:45 +01:00
|
|
|
.aggregate(
|
2018-11-20 10:16:08 +01:00
|
|
|
`lm-coursier`,
|
2019-04-24 18:20:32 +02:00
|
|
|
`lm-coursier-shaded`,
|
2017-02-02 02:06:04 +01:00
|
|
|
`sbt-coursier`,
|
2018-11-20 13:15:26 +01:00
|
|
|
`sbt-coursier-shared`,
|
2019-04-25 16:55:31 +02:00
|
|
|
`sbt-coursier-shared-shaded`,
|
2020-09-14 14:13:11 +02:00
|
|
|
`sbt-lm-coursier`
|
2017-01-30 23:28:45 +01:00
|
|
|
)
|
2016-05-29 23:45:55 +02:00
|
|
|
.settings(
|
2017-04-02 21:51:11 +02:00
|
|
|
shared,
|
2018-11-05 10:35:18 +01:00
|
|
|
skip.in(publish) := true
|
2016-05-29 23:45:55 +02:00
|
|
|
)
|
2017-01-30 23:28:45 +01:00
|
|
|
|