2015-11-21 14:23:06 +01:00
|
|
|
|
2017-04-02 21:51:11 +02:00
|
|
|
import Aliases._
|
2017-05-15 15:32:47 +02:00
|
|
|
import Settings._
|
2017-04-02 21:51:11 +02:00
|
|
|
import Publish._
|
2016-02-16 01:03:00 +01:00
|
|
|
|
2018-09-28 17:55:42 +02:00
|
|
|
val coursierVersion = "1.1.0-M7"
|
2015-12-30 01:34:34 +01:00
|
|
|
|
2017-12-11 01:25:50 +01:00
|
|
|
lazy val `sbt-shared` = project
|
2018-09-28 18:36:32 +02:00
|
|
|
.in(file("modules/sbt-shared"))
|
2017-12-11 01:25:50 +01:00
|
|
|
.settings(
|
|
|
|
|
plugin,
|
2018-09-28 17:55:42 +02:00
|
|
|
libraryDependencies ++= Seq(
|
|
|
|
|
"io.get-coursier" %% "coursier" % coursierVersion,
|
|
|
|
|
"io.get-coursier" %% "coursier-cache" % coursierVersion
|
|
|
|
|
),
|
2018-02-02 13:46:57 +01:00
|
|
|
// because we don't publish for 2.11 the following declaration
|
|
|
|
|
// is more wordy than usual
|
2018-02-12 13:46:44 +01:00
|
|
|
// once support for sbt 0.13 is removed, this dependency can go away
|
2018-01-10 15:38:48 +01:00
|
|
|
libs ++= {
|
2018-02-12 13:46:44 +01:00
|
|
|
val dependency = "com.dwijnand" % "sbt-compat" % "1.2.6"
|
2018-01-10 15:38:48 +01:00
|
|
|
val sbtV = (sbtBinaryVersion in pluginCrossBuild).value
|
|
|
|
|
val scalaV = (scalaBinaryVersion in update).value
|
|
|
|
|
val m = Defaults.sbtPluginExtra(dependency, sbtV, scalaV)
|
|
|
|
|
CrossVersion.partialVersion(scalaVersion.value).collect {
|
|
|
|
|
case (2, 10) => m
|
|
|
|
|
case (2, 12) => m
|
|
|
|
|
}.toList
|
|
|
|
|
}
|
2017-12-11 01:25:50 +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-09-28 17:55:42 +02:00
|
|
|
.dependsOn(`sbt-shared`)
|
2017-08-30 01:26:46 +02:00
|
|
|
.settings(
|
|
|
|
|
plugin,
|
2018-03-12 11:18:20 +01:00
|
|
|
utest,
|
2018-09-28 17:55:42 +02:00
|
|
|
libraryDependencies ++= Seq(
|
|
|
|
|
"io.get-coursier" %% "coursier" % coursierVersion,
|
|
|
|
|
"io.get-coursier" %% "coursier-cache" % coursierVersion,
|
|
|
|
|
"io.get-coursier" %% "coursier-extra" % coursierVersion,
|
|
|
|
|
"io.get-coursier" %% "coursier-scalaz-interop" % coursierVersion
|
|
|
|
|
),
|
2018-03-12 11:18:20 +01:00
|
|
|
scriptedDependencies := {
|
|
|
|
|
scriptedDependencies.value
|
|
|
|
|
|
|
|
|
|
// TODO Get dependency projects automatically
|
|
|
|
|
// (but shouldn't scripted itself handle that…?)
|
|
|
|
|
publishLocal.in(`sbt-shared`).value
|
|
|
|
|
}
|
2017-08-30 01:26:46 +02:00
|
|
|
)
|
2017-01-30 22:57:24 +01:00
|
|
|
|
2017-06-06 19:51:38 +02:00
|
|
|
lazy val `sbt-pgp-coursier` = project
|
2018-09-28 18:36:32 +02:00
|
|
|
.in(file("modules/sbt-pgp-coursier"))
|
2017-06-06 19:51:38 +02:00
|
|
|
.dependsOn(`sbt-coursier`)
|
|
|
|
|
.settings(
|
|
|
|
|
plugin,
|
2018-09-28 17:55:42 +02:00
|
|
|
libs += Deps.sbtPgp.value,
|
2018-03-12 11:18:20 +01:00
|
|
|
scriptedDependencies := {
|
|
|
|
|
scriptedDependencies.value
|
|
|
|
|
// TODO Get dependency projects automatically
|
|
|
|
|
scriptedDependencies.in(`sbt-coursier`).value
|
2017-06-06 19:51:38 +02:00
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
2017-01-30 22:57:24 +01:00
|
|
|
lazy val `sbt-shading` = project
|
2018-09-28 18:36:32 +02:00
|
|
|
.in(file("modules/sbt-shading"))
|
2017-11-01 00:27:45 +01:00
|
|
|
.enablePlugins(ShadingPlugin)
|
2017-02-02 02:06:04 +01:00
|
|
|
.dependsOn(`sbt-coursier`)
|
2016-04-01 00:39:30 +02:00
|
|
|
.settings(
|
2017-04-02 21:51:11 +02:00
|
|
|
plugin,
|
|
|
|
|
shading,
|
2017-07-11 19:04:00 +02:00
|
|
|
libs += Deps.jarjar % "shaded",
|
2017-04-02 21:51:11 +02:00
|
|
|
// dependencies of jarjar-core - directly depending on these so that they don't get shaded
|
2018-03-12 11:18:20 +01:00
|
|
|
libs ++= Deps.jarjarTransitiveDeps,
|
|
|
|
|
scriptedDependencies := {
|
|
|
|
|
scriptedDependencies.value
|
|
|
|
|
// TODO Get dependency projects automatically
|
|
|
|
|
scriptedDependencies.in(`sbt-coursier`).value
|
|
|
|
|
}
|
2015-12-30 01:34:34 +01:00
|
|
|
)
|
|
|
|
|
|
2017-04-02 21:51:11 +02:00
|
|
|
lazy val coursier = project
|
2018-09-28 18:36:32 +02:00
|
|
|
.in(file("."))
|
2017-01-30 23:28:45 +01:00
|
|
|
.aggregate(
|
2017-12-11 01:25:50 +01:00
|
|
|
`sbt-shared`,
|
2017-02-02 02:06:04 +01:00
|
|
|
`sbt-coursier`,
|
2017-06-06 19:51:38 +02:00
|
|
|
`sbt-pgp-coursier`,
|
2018-09-28 17:55:42 +02:00
|
|
|
`sbt-shading`
|
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,
|
|
|
|
|
dontPublish,
|
2018-09-28 17:55:42 +02:00
|
|
|
moduleName := "sbt-coursier-root"
|
2016-05-29 23:45:55 +02:00
|
|
|
)
|
2017-01-30 23:28:45 +01:00
|
|
|
|
|
|
|
|
|