2016-01-31 20:55:18 +01:00
|
|
|
import java.io.FileOutputStream
|
2015-11-21 14:23:06 +01:00
|
|
|
|
2016-02-16 01:03:00 +01:00
|
|
|
import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
|
|
|
|
|
import com.typesafe.tools.mima.plugin.MimaKeys
|
|
|
|
|
import MimaKeys.{ previousArtifacts, binaryIssueFilters }
|
|
|
|
|
|
|
|
|
|
val binaryCompatibilityVersion = "1.0.0-M7"
|
|
|
|
|
|
2016-01-27 11:45:36 +01:00
|
|
|
lazy val releaseSettings = Seq(
|
2015-11-21 14:23:06 +01:00
|
|
|
publishMavenStyle := true,
|
2015-11-21 14:23:07 +01:00
|
|
|
licenses := Seq("Apache 2.0" -> url("http://opensource.org/licenses/Apache-2.0")),
|
|
|
|
|
homepage := Some(url("https://github.com/alexarchambault/coursier")),
|
2015-11-21 14:23:06 +01:00
|
|
|
pomExtra := {
|
|
|
|
|
<scm>
|
|
|
|
|
<connection>scm:git:github.com/alexarchambault/coursier.git</connection>
|
|
|
|
|
<developerConnection>scm:git:git@github.com:alexarchambault/coursier.git</developerConnection>
|
|
|
|
|
<url>github.com/alexarchambault/coursier.git</url>
|
|
|
|
|
</scm>
|
2015-12-12 19:51:00 +01:00
|
|
|
<developers>
|
|
|
|
|
<developer>
|
|
|
|
|
<id>alexarchambault</id>
|
|
|
|
|
<name>Alexandre Archambault</name>
|
|
|
|
|
<url>https://github.com/alexarchambault</url>
|
|
|
|
|
</developer>
|
|
|
|
|
</developers>
|
2015-12-30 23:55:17 +01:00
|
|
|
},
|
2015-12-12 19:01:37 +01:00
|
|
|
publishTo := {
|
|
|
|
|
val nexus = "https://oss.sonatype.org/"
|
|
|
|
|
if (isSnapshot.value)
|
|
|
|
|
Some("snapshots" at nexus + "content/repositories/snapshots")
|
|
|
|
|
else
|
|
|
|
|
Some("releases" at nexus + "service/local/staging/deploy/maven2")
|
2015-11-21 14:23:06 +01:00
|
|
|
},
|
|
|
|
|
credentials += {
|
|
|
|
|
Seq("SONATYPE_USER", "SONATYPE_PASS").map(sys.env.get) match {
|
|
|
|
|
case Seq(Some(user), Some(pass)) =>
|
2016-01-13 23:07:01 +01:00
|
|
|
Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass)
|
2015-11-21 14:23:06 +01:00
|
|
|
case _ =>
|
|
|
|
|
Credentials(Path.userHome / ".ivy2" / ".credentials")
|
|
|
|
|
}
|
2015-12-12 19:01:37 +01:00
|
|
|
}
|
|
|
|
|
)
|
2015-11-21 14:23:06 +01:00
|
|
|
|
2015-11-21 14:23:08 +01:00
|
|
|
lazy val noPublishSettings = Seq(
|
|
|
|
|
publish := (),
|
|
|
|
|
publishLocal := (),
|
|
|
|
|
publishArtifact := false
|
|
|
|
|
)
|
|
|
|
|
|
2015-12-31 01:26:09 +01:00
|
|
|
lazy val noPublish211Settings = Seq(
|
|
|
|
|
publish := {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
publish.value
|
|
|
|
|
else
|
|
|
|
|
()
|
|
|
|
|
},
|
|
|
|
|
publishLocal := {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
publishLocal.value
|
|
|
|
|
else
|
|
|
|
|
()
|
|
|
|
|
},
|
|
|
|
|
publishArtifact := {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
publishArtifact.value
|
|
|
|
|
else
|
|
|
|
|
false
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
2015-12-30 23:55:17 +01:00
|
|
|
lazy val noPublish210Settings = Seq(
|
|
|
|
|
publish := {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
()
|
|
|
|
|
else
|
|
|
|
|
publish.value
|
|
|
|
|
},
|
|
|
|
|
publishLocal := {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
()
|
|
|
|
|
else
|
|
|
|
|
publishLocal.value
|
|
|
|
|
},
|
|
|
|
|
publishArtifact := {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
false
|
|
|
|
|
else
|
|
|
|
|
publishArtifact.value
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
|
2015-11-28 17:14:18 +01:00
|
|
|
lazy val baseCommonSettings = Seq(
|
2015-11-21 14:23:06 +01:00
|
|
|
organization := "com.github.alexarchambault",
|
|
|
|
|
resolvers ++= Seq(
|
|
|
|
|
"Scalaz Bintray Repo" at "http://dl.bintray.com/scalaz/releases",
|
2016-01-02 14:59:43 +01:00
|
|
|
Resolver.sonatypeRepo("releases")
|
2015-11-28 17:56:55 +01:00
|
|
|
),
|
|
|
|
|
scalacOptions += "-target:jvm-1.7",
|
|
|
|
|
javacOptions ++= Seq(
|
|
|
|
|
"-source", "1.7",
|
|
|
|
|
"-target", "1.7"
|
2015-12-30 01:34:34 +01:00
|
|
|
),
|
|
|
|
|
javacOptions in Keys.doc := Seq()
|
2015-12-31 01:26:09 +01:00
|
|
|
) ++ releaseSettings
|
2015-11-28 17:14:18 +01:00
|
|
|
|
2015-12-31 01:26:09 +01:00
|
|
|
lazy val commonSettings = baseCommonSettings ++ Seq(
|
2015-11-28 17:14:18 +01:00
|
|
|
scalaVersion := "2.11.7",
|
2015-12-31 00:45:37 +01:00
|
|
|
crossScalaVersions := Seq("2.11.7", "2.10.6"),
|
2015-11-21 14:23:08 +01:00
|
|
|
libraryDependencies ++= {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
Seq(compilerPlugin("org.scalamacros" % "paradise" % "2.0.1" cross CrossVersion.full))
|
|
|
|
|
else
|
|
|
|
|
Seq()
|
|
|
|
|
}
|
2015-11-21 14:23:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
lazy val core = crossProject
|
|
|
|
|
.settings(commonSettings: _*)
|
2016-02-16 01:03:00 +01:00
|
|
|
.settings(mimaDefaultSettings: _*)
|
2015-11-21 14:23:06 +01:00
|
|
|
.settings(
|
2016-01-31 20:55:18 +01:00
|
|
|
name := "coursier",
|
|
|
|
|
resourceGenerators.in(Compile) += {
|
|
|
|
|
(target, version).map { (dir, ver) =>
|
|
|
|
|
import sys.process._
|
|
|
|
|
|
|
|
|
|
val f = dir / "coursier.properties"
|
|
|
|
|
dir.mkdirs()
|
|
|
|
|
|
|
|
|
|
val p = new java.util.Properties()
|
|
|
|
|
|
|
|
|
|
p.setProperty("version", ver)
|
|
|
|
|
p.setProperty("commit-hash", Seq("git", "rev-parse", "HEAD").!!.trim)
|
|
|
|
|
|
|
|
|
|
val w = new FileOutputStream(f)
|
|
|
|
|
p.store(w, "Coursier properties")
|
|
|
|
|
w.close()
|
|
|
|
|
|
|
|
|
|
println(s"Wrote $f")
|
|
|
|
|
|
|
|
|
|
Seq(f)
|
|
|
|
|
}.taskValue
|
2016-02-16 01:03:00 +01:00
|
|
|
},
|
|
|
|
|
previousArtifacts := Set(organization.value %% moduleName.value % binaryCompatibilityVersion),
|
|
|
|
|
binaryIssueFilters ++= {
|
|
|
|
|
import com.typesafe.tools.mima.core._
|
|
|
|
|
import com.typesafe.tools.mima.core.ProblemFilters._
|
|
|
|
|
|
2016-02-28 16:36:58 +01:00
|
|
|
Seq(
|
|
|
|
|
// Since 1.0.0-M10
|
2016-02-28 16:36:58 +01:00
|
|
|
ProblemFilters.exclude[IncompatibleResultTypeProblem]("coursier.core.Resolution.withParentConfigurations"),
|
2016-02-28 16:36:58 +01:00
|
|
|
// New singleton object, problem for forward compatibility only
|
|
|
|
|
ProblemFilters.exclude[MissingTypesProblem]("coursier.maven.MavenSource$")
|
|
|
|
|
)
|
2016-01-31 20:55:18 +01:00
|
|
|
}
|
2015-11-21 14:23:06 +01:00
|
|
|
)
|
|
|
|
|
.jvmSettings(
|
2015-11-29 20:20:31 +01:00
|
|
|
libraryDependencies ++=
|
|
|
|
|
Seq(
|
|
|
|
|
"org.scalaz" %% "scalaz-core" % "7.1.2"
|
|
|
|
|
) ++ {
|
|
|
|
|
if (scalaVersion.value.startsWith("2.10.")) Seq()
|
|
|
|
|
else Seq(
|
|
|
|
|
"org.scala-lang.modules" %% "scala-xml" % "1.0.3"
|
|
|
|
|
)
|
|
|
|
|
}
|
2015-11-21 14:23:06 +01:00
|
|
|
)
|
|
|
|
|
.jsSettings(
|
|
|
|
|
libraryDependencies ++= Seq(
|
|
|
|
|
"com.github.japgolly.fork.scalaz" %%% "scalaz-core" % (if (scalaVersion.value.startsWith("2.10.")) "7.1.1" else "7.1.2"),
|
2015-11-29 20:20:31 +01:00
|
|
|
"org.scala-js" %%% "scalajs-dom" % "0.8.0",
|
|
|
|
|
"be.doeraene" %%% "scalajs-jquery" % "0.8.0"
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
lazy val coreJvm = core.jvm
|
|
|
|
|
lazy val coreJs = core.js
|
|
|
|
|
|
|
|
|
|
lazy val `fetch-js` = project
|
|
|
|
|
.enablePlugins(ScalaJSPlugin)
|
|
|
|
|
.dependsOn(coreJs)
|
|
|
|
|
.settings(commonSettings)
|
|
|
|
|
.settings(noPublishSettings)
|
|
|
|
|
.settings(
|
|
|
|
|
name := "coursier-fetch-js"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
lazy val tests = crossProject
|
|
|
|
|
.dependsOn(core)
|
|
|
|
|
.settings(commonSettings: _*)
|
|
|
|
|
.settings(noPublishSettings: _*)
|
|
|
|
|
.settings(
|
|
|
|
|
name := "coursier-tests",
|
|
|
|
|
libraryDependencies ++= Seq(
|
|
|
|
|
"org.scala-lang.modules" %% "scala-async" % "0.9.1" % "provided",
|
2015-11-21 14:23:06 +01:00
|
|
|
"com.lihaoyi" %%% "utest" % "0.3.0" % "test"
|
|
|
|
|
),
|
2015-11-29 20:20:31 +01:00
|
|
|
unmanagedResourceDirectories in Test += (baseDirectory in LocalRootProject).value / "tests" / "shared" / "src" / "test" / "resources",
|
|
|
|
|
testFrameworks += new TestFramework("utest.runner.Framework")
|
|
|
|
|
)
|
|
|
|
|
.jsSettings(
|
2015-11-21 14:23:06 +01:00
|
|
|
postLinkJSEnv := NodeJSEnv().value,
|
|
|
|
|
scalaJSStage in Global := FastOptStage
|
|
|
|
|
)
|
|
|
|
|
|
2015-12-30 01:34:41 +01:00
|
|
|
lazy val testsJvm = tests.jvm.dependsOn(cache % "test")
|
2015-11-29 20:20:31 +01:00
|
|
|
lazy val testsJs = tests.js.dependsOn(`fetch-js` % "test")
|
2015-11-21 14:23:06 +01:00
|
|
|
|
2015-12-30 01:34:41 +01:00
|
|
|
lazy val cache = project
|
2015-11-21 14:23:06 +01:00
|
|
|
.dependsOn(coreJvm)
|
|
|
|
|
.settings(commonSettings)
|
2016-02-16 01:03:00 +01:00
|
|
|
.settings(mimaDefaultSettings)
|
2015-11-21 14:23:06 +01:00
|
|
|
.settings(
|
2015-12-30 01:34:41 +01:00
|
|
|
name := "coursier-cache",
|
2015-11-21 14:23:06 +01:00
|
|
|
libraryDependencies ++= Seq(
|
2016-02-28 17:43:57 +01:00
|
|
|
"org.scalaz" %% "scalaz-concurrent" % "7.1.2"
|
2016-02-16 01:03:00 +01:00
|
|
|
),
|
|
|
|
|
previousArtifacts := Set(organization.value %% moduleName.value % binaryCompatibilityVersion),
|
|
|
|
|
binaryIssueFilters ++= {
|
|
|
|
|
import com.typesafe.tools.mima.core._
|
|
|
|
|
import com.typesafe.tools.mima.core.ProblemFilters._
|
|
|
|
|
|
|
|
|
|
Seq(
|
2016-03-06 14:45:57 +01:00
|
|
|
// Since 1.0.0-M10
|
|
|
|
|
// cache argument type changed from `Seq[(String, File)]` to `File`
|
|
|
|
|
ProblemFilters.exclude[IncompatibleMethTypeProblem]("coursier.Cache.file"),
|
|
|
|
|
ProblemFilters.exclude[IncompatibleMethTypeProblem]("coursier.Cache.fetch"),
|
|
|
|
|
ProblemFilters.exclude[IncompatibleResultTypeProblem]("coursier.Cache.default"),
|
|
|
|
|
ProblemFilters.exclude[IncompatibleMethTypeProblem]("coursier.Cache.validateChecksum"),
|
|
|
|
|
ProblemFilters.exclude[MissingMethodProblem]("coursier.Cache.defaultBase"),
|
2016-02-24 20:17:23 +01:00
|
|
|
// Since 1.0.0-M9
|
|
|
|
|
// Added an optional extra parameter to FileError.NotFound - only
|
|
|
|
|
// its unapply method should break compatibility at the source level.
|
|
|
|
|
ProblemFilters.exclude[MissingMethodProblem]("coursier.FileError#NotFound.copy"),
|
|
|
|
|
ProblemFilters.exclude[MissingMethodProblem]("coursier.FileError#NotFound.this"),
|
|
|
|
|
ProblemFilters.exclude[MissingTypesProblem]("coursier.FileError$NotFound$"),
|
|
|
|
|
ProblemFilters.exclude[MissingMethodProblem]("coursier.FileError#NotFound.apply"),
|
|
|
|
|
// Since 1.0.0-M8
|
2016-02-16 01:03:00 +01:00
|
|
|
ProblemFilters.exclude[MissingTypesProblem]("coursier.TermDisplay$Info$"),
|
|
|
|
|
ProblemFilters.exclude[MissingMethodProblem]("coursier.TermDisplay#Info.apply"),
|
|
|
|
|
ProblemFilters.exclude[MissingMethodProblem]("coursier.TermDisplay#Info.copy"),
|
|
|
|
|
ProblemFilters.exclude[MissingMethodProblem]("coursier.TermDisplay#Info.pct"),
|
|
|
|
|
ProblemFilters.exclude[MissingMethodProblem]("coursier.TermDisplay#Info.this")
|
|
|
|
|
)
|
|
|
|
|
}
|
2015-11-29 20:20:31 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
lazy val bootstrap = project
|
|
|
|
|
.settings(baseCommonSettings)
|
2015-12-30 23:55:17 +01:00
|
|
|
.settings(noPublishSettings)
|
2015-11-29 20:20:31 +01:00
|
|
|
.settings(
|
|
|
|
|
name := "coursier-bootstrap",
|
|
|
|
|
artifactName := {
|
|
|
|
|
val artifactName0 = artifactName.value
|
|
|
|
|
(sv, m, artifact) =>
|
|
|
|
|
if (artifact.`type` == "jar" && artifact.extension == "jar")
|
|
|
|
|
"bootstrap.jar"
|
|
|
|
|
else
|
|
|
|
|
artifactName0(sv, m, artifact)
|
|
|
|
|
},
|
|
|
|
|
crossPaths := false,
|
2015-12-30 01:34:34 +01:00
|
|
|
autoScalaLibrary := false
|
2015-11-21 14:23:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
lazy val cli = project
|
2015-12-30 01:34:41 +01:00
|
|
|
.dependsOn(coreJvm, cache)
|
2015-11-21 14:23:06 +01:00
|
|
|
.settings(commonSettings)
|
2015-12-30 23:55:17 +01:00
|
|
|
.settings(noPublish210Settings)
|
2015-11-29 20:20:31 +01:00
|
|
|
.settings(packAutoSettings)
|
2016-01-31 21:06:05 +01:00
|
|
|
.settings(proguardSettings)
|
2015-11-21 14:23:06 +01:00
|
|
|
.settings(
|
|
|
|
|
name := "coursier-cli",
|
2015-12-30 23:55:17 +01:00
|
|
|
libraryDependencies ++= {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
Seq()
|
|
|
|
|
else
|
2016-02-17 20:48:11 +01:00
|
|
|
Seq("com.github.alexarchambault" %% "case-app" % "1.0.0-M4")
|
2015-12-30 23:55:17 +01:00
|
|
|
},
|
2015-12-30 01:34:44 +01:00
|
|
|
resourceGenerators in Compile += packageBin.in(bootstrap).in(Compile).map { jar =>
|
|
|
|
|
Seq(jar)
|
2016-01-31 21:06:05 +01:00
|
|
|
}.taskValue,
|
|
|
|
|
ProguardKeys.proguardVersion in Proguard := "5.2.1",
|
|
|
|
|
ProguardKeys.options in Proguard ++= Seq(
|
|
|
|
|
"-dontwarn",
|
|
|
|
|
"-keep class coursier.cli.Coursier {\n public static void main(java.lang.String[]);\n}",
|
|
|
|
|
"-keep class coursier.cli.IsolatedClassLoader {\n public java.lang.String[] getIsolationTargets();\n}"
|
|
|
|
|
),
|
|
|
|
|
javaOptions in (Proguard, ProguardKeys.proguard) := Seq("-Xmx3172M"),
|
2016-02-20 15:53:09 +01:00
|
|
|
artifactPath in Proguard := (ProguardKeys.proguardDirectory in Proguard).value / "coursier-standalone.jar",
|
|
|
|
|
artifacts ++= {
|
|
|
|
|
if (scalaBinaryVersion.value == "2.10")
|
|
|
|
|
Nil
|
|
|
|
|
else Seq(
|
|
|
|
|
Artifact(
|
|
|
|
|
moduleName.value,
|
|
|
|
|
"jar",
|
|
|
|
|
"jar",
|
|
|
|
|
"standalone"
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
packagedArtifacts <++= {
|
|
|
|
|
(
|
|
|
|
|
moduleName,
|
|
|
|
|
scalaBinaryVersion,
|
|
|
|
|
ProguardKeys.proguard in Proguard
|
|
|
|
|
).map {
|
|
|
|
|
(mod, sbv, files) =>
|
|
|
|
|
if (sbv == "2.10")
|
|
|
|
|
Map.empty[Artifact, File]
|
|
|
|
|
else {
|
|
|
|
|
val f = files match {
|
|
|
|
|
case Seq(f) => f
|
|
|
|
|
case Seq() =>
|
|
|
|
|
throw new Exception("Found no proguarded files. Expected one.")
|
|
|
|
|
case _ =>
|
|
|
|
|
throw new Exception("Found several proguarded files. Don't know how to publish all of them.")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Map(
|
|
|
|
|
// FIXME Same Artifact as above
|
|
|
|
|
Artifact(
|
|
|
|
|
mod,
|
|
|
|
|
"jar",
|
|
|
|
|
"jar",
|
|
|
|
|
"standalone"
|
|
|
|
|
) -> f
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-11-21 14:23:06 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
lazy val web = project
|
|
|
|
|
.enablePlugins(ScalaJSPlugin)
|
2015-11-29 20:20:31 +01:00
|
|
|
.dependsOn(coreJs, `fetch-js`)
|
2015-11-21 14:23:06 +01:00
|
|
|
.settings(commonSettings)
|
2015-11-21 14:23:08 +01:00
|
|
|
.settings(noPublishSettings)
|
2015-11-21 14:23:06 +01:00
|
|
|
.settings(
|
|
|
|
|
libraryDependencies ++= {
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
Seq()
|
|
|
|
|
else
|
|
|
|
|
Seq("com.github.japgolly.scalajs-react" %%% "core" % "0.9.0")
|
|
|
|
|
},
|
|
|
|
|
sourceDirectory := {
|
|
|
|
|
val dir = sourceDirectory.value
|
|
|
|
|
|
|
|
|
|
if (scalaVersion.value startsWith "2.10.")
|
|
|
|
|
dir / "dummy"
|
|
|
|
|
else
|
|
|
|
|
dir
|
|
|
|
|
},
|
|
|
|
|
test in Test := (),
|
|
|
|
|
testOnly in Test := (),
|
|
|
|
|
resolvers += "Webjars Bintray" at "https://dl.bintray.com/webjars/maven/",
|
|
|
|
|
jsDependencies ++= Seq(
|
|
|
|
|
("org.webjars.bower" % "bootstrap" % "3.3.4" intransitive()) / "bootstrap.min.js" commonJSName "Bootstrap",
|
|
|
|
|
("org.webjars.bower" % "react" % "0.12.2" intransitive()) / "react-with-addons.js" commonJSName "React",
|
|
|
|
|
("org.webjars.bower" % "bootstrap-treeview" % "1.2.0" intransitive()) / "bootstrap-treeview.min.js" commonJSName "Treeview",
|
|
|
|
|
("org.webjars.bower" % "raphael" % "2.1.4" intransitive()) / "raphael-min.js" commonJSName "Raphael"
|
|
|
|
|
)
|
|
|
|
|
)
|
|
|
|
|
|
2015-12-30 01:34:34 +01:00
|
|
|
lazy val doc = project
|
2015-12-30 01:34:41 +01:00
|
|
|
.dependsOn(coreJvm, cache)
|
2015-12-30 01:34:34 +01:00
|
|
|
.settings(commonSettings)
|
|
|
|
|
.settings(noPublishSettings)
|
|
|
|
|
.settings(tutSettings)
|
|
|
|
|
.settings(
|
|
|
|
|
tutSourceDirectory := baseDirectory.value,
|
|
|
|
|
tutTargetDirectory := baseDirectory.value / ".."
|
|
|
|
|
)
|
|
|
|
|
|
2015-12-30 01:34:34 +01:00
|
|
|
// Don't try to compile that if you're not in 2.10
|
|
|
|
|
lazy val plugin = project
|
2015-12-30 01:34:44 +01:00
|
|
|
.dependsOn(coreJvm, cache)
|
2015-12-30 01:34:34 +01:00
|
|
|
.settings(baseCommonSettings)
|
2015-12-31 01:26:09 +01:00
|
|
|
.settings(noPublish211Settings)
|
2015-12-30 01:34:34 +01:00
|
|
|
.settings(
|
|
|
|
|
name := "coursier-sbt-plugin",
|
2015-12-31 01:26:09 +01:00
|
|
|
sbtPlugin := {
|
|
|
|
|
scalaVersion.value.startsWith("2.10.")
|
2016-02-16 16:09:54 +01:00
|
|
|
},
|
|
|
|
|
// added so that 2.10 artifacts of the other modules can be found by
|
|
|
|
|
// the too-naive-for-now inter-project resolver of the coursier SBT plugin
|
|
|
|
|
resolvers += Resolver.sonatypeRepo("snapshots")
|
2015-12-30 01:34:34 +01:00
|
|
|
)
|
|
|
|
|
|
2015-11-21 14:23:06 +01:00
|
|
|
lazy val `coursier` = project.in(file("."))
|
2015-12-31 01:26:09 +01:00
|
|
|
.aggregate(coreJvm, coreJs, `fetch-js`, testsJvm, testsJs, cache, bootstrap, cli, plugin, web, doc)
|
2015-11-21 14:23:06 +01:00
|
|
|
.settings(commonSettings)
|
2015-11-21 14:23:08 +01:00
|
|
|
.settings(noPublishSettings)
|
2015-12-12 19:01:37 +01:00
|
|
|
.settings(releaseSettings)
|