mirror of https://github.com/sbt/sbt.git
Add, configure & enable MiMa
This commit is contained in:
parent
7d91a25608
commit
da9084b2d8
|
|
@ -6,7 +6,7 @@ scala:
|
||||||
- 2.12.2
|
- 2.12.2
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- sbt -Dfile.encoding=UTF8 -J-XX:ReservedCodeCacheSize=256M "++$TRAVIS_SCALA_VERSION" test
|
- sbt -Dfile.encoding=UTF8 -J-XX:ReservedCodeCacheSize=256M "++$TRAVIS_SCALA_VERSION" mimaReportBinaryIssues test
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
|
|
|
||||||
32
build.sbt
32
build.sbt
|
|
@ -25,11 +25,16 @@ def commonSettings: Seq[Setting[_]] = Seq(
|
||||||
},
|
},
|
||||||
scalacOptions in console in Compile -= "-Ywarn-unused-import",
|
scalacOptions in console in Compile -= "-Ywarn-unused-import",
|
||||||
scalacOptions in console in Test -= "-Ywarn-unused-import",
|
scalacOptions in console in Test -= "-Ywarn-unused-import",
|
||||||
// mimaPreviousArtifacts := Set(), // Some(organization.value %% moduleName.value % "1.0.0"),
|
|
||||||
publishArtifact in Compile := true,
|
publishArtifact in Compile := true,
|
||||||
publishArtifact in Test := false
|
publishArtifact in Test := false
|
||||||
)
|
)
|
||||||
|
|
||||||
|
val mimaSettings = Def settings (
|
||||||
|
mimaPreviousArtifacts := Set(organization.value % moduleName.value % "1.0.0-M28"
|
||||||
|
cross (if (crossPaths.value) CrossVersion.binary else CrossVersion.disabled)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
lazy val utilRoot: Project = (project in file(".")).
|
lazy val utilRoot: Project = (project in file(".")).
|
||||||
aggregate(
|
aggregate(
|
||||||
utilInterface, utilControl, utilPosition,
|
utilInterface, utilControl, utilPosition,
|
||||||
|
|
@ -67,18 +72,21 @@ lazy val utilInterface = (project in internalPath / "util-interface").
|
||||||
commonSettings,
|
commonSettings,
|
||||||
javaOnlySettings,
|
javaOnlySettings,
|
||||||
name := "Util Interface",
|
name := "Util Interface",
|
||||||
exportJars := true
|
exportJars := true,
|
||||||
|
mimaSettings,
|
||||||
)
|
)
|
||||||
|
|
||||||
lazy val utilControl = (project in internalPath / "util-control").
|
lazy val utilControl = (project in internalPath / "util-control").
|
||||||
settings(
|
settings(
|
||||||
commonSettings,
|
commonSettings,
|
||||||
name := "Util Control"
|
name := "Util Control",
|
||||||
|
mimaSettings,
|
||||||
)
|
)
|
||||||
|
|
||||||
val utilPosition = (project in file("internal") / "util-position").settings(
|
val utilPosition = (project in file("internal") / "util-position").settings(
|
||||||
commonSettings,
|
commonSettings,
|
||||||
name := "Util Position"
|
name := "Util Position",
|
||||||
|
mimaSettings,
|
||||||
)
|
)
|
||||||
|
|
||||||
// logging
|
// logging
|
||||||
|
|
@ -97,6 +105,7 @@ lazy val utilLogging = (project in internalPath / "util-logging").
|
||||||
if (name == "Throwable") Nil
|
if (name == "Throwable") Nil
|
||||||
else old(tpe)
|
else old(tpe)
|
||||||
},
|
},
|
||||||
|
mimaSettings,
|
||||||
)
|
)
|
||||||
|
|
||||||
// Relation
|
// Relation
|
||||||
|
|
@ -104,7 +113,8 @@ lazy val utilRelation = (project in internalPath / "util-relation").
|
||||||
dependsOn(utilTesting % Test).
|
dependsOn(utilTesting % Test).
|
||||||
settings(
|
settings(
|
||||||
commonSettings,
|
commonSettings,
|
||||||
name := "Util Relation"
|
name := "Util Relation",
|
||||||
|
mimaSettings,
|
||||||
)
|
)
|
||||||
|
|
||||||
// Persisted caching based on sjson-new
|
// Persisted caching based on sjson-new
|
||||||
|
|
@ -113,7 +123,8 @@ lazy val utilCache = (project in file("util-cache")).
|
||||||
settings(
|
settings(
|
||||||
commonSettings,
|
commonSettings,
|
||||||
name := "Util Cache",
|
name := "Util Cache",
|
||||||
libraryDependencies ++= Seq(sjsonnewScalaJson.value, sjsonnewMurmurhash.value, scalaReflect.value)
|
libraryDependencies ++= Seq(sjsonnewScalaJson.value, sjsonnewMurmurhash.value, scalaReflect.value),
|
||||||
|
mimaSettings,
|
||||||
).
|
).
|
||||||
configure(addSbtIO)
|
configure(addSbtIO)
|
||||||
|
|
||||||
|
|
@ -122,7 +133,8 @@ lazy val utilTracking = (project in file("util-tracking")).
|
||||||
dependsOn(utilCache, utilTesting % Test).
|
dependsOn(utilCache, utilTesting % Test).
|
||||||
settings(
|
settings(
|
||||||
commonSettings,
|
commonSettings,
|
||||||
name := "Util Tracking"
|
name := "Util Tracking",
|
||||||
|
mimaSettings,
|
||||||
).
|
).
|
||||||
configure(addSbtIO)
|
configure(addSbtIO)
|
||||||
|
|
||||||
|
|
@ -132,7 +144,8 @@ lazy val utilTesting = (project in internalPath / "util-testing").
|
||||||
commonSettings,
|
commonSettings,
|
||||||
crossScalaVersions := Seq(scala210, scala211, scala212),
|
crossScalaVersions := Seq(scala210, scala211, scala212),
|
||||||
name := "Util Testing",
|
name := "Util Testing",
|
||||||
libraryDependencies ++= Seq(scalaCheck, scalatest)
|
libraryDependencies ++= Seq(scalaCheck, scalatest),
|
||||||
|
mimaSettings,
|
||||||
).
|
).
|
||||||
configure(addSbtIO)
|
configure(addSbtIO)
|
||||||
|
|
||||||
|
|
@ -147,7 +160,8 @@ lazy val utilScripted = (project in internalPath / "util-scripted").
|
||||||
case sv if sv startsWith "2.12" => Seq(parserCombinator211)
|
case sv if sv startsWith "2.12" => Seq(parserCombinator211)
|
||||||
case _ => Seq()
|
case _ => Seq()
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
mimaSettings,
|
||||||
).
|
).
|
||||||
configure(addSbtIO)
|
configure(addSbtIO)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,2 +1,3 @@
|
||||||
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.3")
|
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.3")
|
||||||
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.3.0-M9")
|
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.3.0-M9")
|
||||||
|
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.14")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue