sbt/build.sbt

132 lines
4.1 KiB
Plaintext
Raw Normal View History

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")
)
)
))
2018-10-29 17:18:39 +01:00
val coursierVersion = "1.1.0-M8"
2015-12-30 01:34:34 +01:00
lazy val `lm-coursier` = project
.in(file("modules/lm-coursier"))
.enablePlugins(ContrabandPlugin, JsonCodecPlugin)
.settings(
shared,
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,
// 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).
"org.scala-sbt" %% "librarymanagement-ivy" % "1.0.2",
"org.scalatest" %% "scalatest" % "3.0.5" % Test
),
managedSourceDirectories in Compile +=
baseDirectory.value / "src" / "main" / "contraband-scala",
sourceManaged in (Compile, generateContrabands) := baseDirectory.value / "src" / "main" / "contraband-scala",
contrabandFormatsForType in generateContrabands in Compile := DatatypeConfig.getFormats
)
2018-11-20 11:38:41 +01:00
lazy val `sbt-lm-coursier` = project
.in(file("modules/sbt-lm-coursier"))
.enablePlugins(ScriptedPlugin)
.dependsOn(`lm-coursier`)
.settings(
plugin,
sbtTestDirectory := sbtTestDirectory.in(`sbt-coursier`).value,
scriptedDependencies := {
scriptedDependencies.value
// TODO Get those automatically
// (but shouldn't scripted itself handle that…?)
publishLocal.in(`lm-coursier`).value
}
)
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)
.dependsOn(`lm-coursier`)
.settings(
plugin,
2018-10-17 14:18:03 +02:00
libraryDependencies += "com.lihaoyi" %% "utest" % "0.6.4" % Test,
testFrameworks += new TestFramework("utest.runner.Framework"),
libraryDependencies +="io.get-coursier" %% "coursier-scalaz-interop" % coursierVersion,
scriptedDependencies := {
scriptedDependencies.value
// TODO Get dependency projects automatically
// (but shouldn't scripted itself handle that…?)
publishLocal.in(`lm-coursier`).value
}
)
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"))
2018-10-17 14:18:03 +02:00
.enablePlugins(ScriptedPlugin)
2017-06-06 19:51:38 +02:00
.dependsOn(`sbt-coursier`)
.settings(
plugin,
2018-10-17 14:18:03 +02:00
libraryDependencies += {
val sbtv = CrossVersion.binarySbtVersion(sbtVersion.in(pluginCrossBuild).value)
val sv = scalaBinaryVersion.value
val ver = "1.1.1"
Defaults.sbtPluginExtra("com.jsuereth" % "sbt-pgp" % ver, sbtv, sv)
},
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"))
2018-10-17 14:18:03 +02:00
.enablePlugins(ScriptedPlugin, 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,
2018-10-17 14:18:03 +02:00
libraryDependencies += "io.get-coursier.jarjar" % "jarjar-core" % "1.0.1-coursier-1" % "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-10-17 14:18:03 +02:00
libraryDependencies ++= Seq(
"com.google.code.findbugs" % "jsr305" % "2.0.2",
"org.ow2.asm" % "asm-commons" % "5.2",
"org.ow2.asm" % "asm-util" % "5.2",
"org.slf4j" % "slf4j-api" % "1.7.25"
),
scriptedDependencies := {
scriptedDependencies.value
// TODO Get dependency projects automatically
scriptedDependencies.in(`sbt-coursier`).value
}
2015-12-30 01:34:34 +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("."))
2017-01-30 23:28:45 +01:00
.aggregate(
`lm-coursier`,
2017-02-02 02:06:04 +01:00
`sbt-coursier`,
2018-11-20 11:38:41 +01:00
`sbt-lm-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
)
.settings(
2017-04-02 21:51:11 +02:00
shared,
2018-11-05 10:35:18 +01:00
skip.in(publish) := true
)
2017-01-30 23:28:45 +01:00