mirror of https://github.com/sbt/sbt.git
Merge pull request #103 from dwijnand/mima
Add, configure & enable MiMa
This commit is contained in:
commit
2bb2cfd10e
|
|
@ -6,7 +6,7 @@ scala:
|
|||
- 2.12.2
|
||||
|
||||
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:
|
||||
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 Test -= "-Ywarn-unused-import",
|
||||
// mimaPreviousArtifacts := Set(), // Some(organization.value %% moduleName.value % "1.0.0"),
|
||||
publishArtifact in Compile := true,
|
||||
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(".")).
|
||||
aggregate(
|
||||
utilInterface, utilControl, utilPosition,
|
||||
|
|
@ -67,18 +72,21 @@ lazy val utilInterface = (project in internalPath / "util-interface").
|
|||
commonSettings,
|
||||
javaOnlySettings,
|
||||
name := "Util Interface",
|
||||
exportJars := true
|
||||
exportJars := true,
|
||||
mimaSettings,
|
||||
)
|
||||
|
||||
lazy val utilControl = (project in internalPath / "util-control").
|
||||
settings(
|
||||
commonSettings,
|
||||
name := "Util Control"
|
||||
name := "Util Control",
|
||||
mimaSettings,
|
||||
)
|
||||
|
||||
val utilPosition = (project in file("internal") / "util-position").settings(
|
||||
commonSettings,
|
||||
name := "Util Position"
|
||||
name := "Util Position",
|
||||
mimaSettings,
|
||||
)
|
||||
|
||||
// logging
|
||||
|
|
@ -97,6 +105,7 @@ lazy val utilLogging = (project in internalPath / "util-logging").
|
|||
if (name == "Throwable") Nil
|
||||
else old(tpe)
|
||||
},
|
||||
mimaSettings,
|
||||
)
|
||||
|
||||
// Relation
|
||||
|
|
@ -104,7 +113,8 @@ lazy val utilRelation = (project in internalPath / "util-relation").
|
|||
dependsOn(utilTesting % Test).
|
||||
settings(
|
||||
commonSettings,
|
||||
name := "Util Relation"
|
||||
name := "Util Relation",
|
||||
mimaSettings,
|
||||
)
|
||||
|
||||
// Persisted caching based on sjson-new
|
||||
|
|
@ -113,7 +123,8 @@ lazy val utilCache = (project in file("util-cache")).
|
|||
settings(
|
||||
commonSettings,
|
||||
name := "Util Cache",
|
||||
libraryDependencies ++= Seq(sjsonnewScalaJson.value, sjsonnewMurmurhash.value, scalaReflect.value)
|
||||
libraryDependencies ++= Seq(sjsonnewScalaJson.value, sjsonnewMurmurhash.value, scalaReflect.value),
|
||||
mimaSettings,
|
||||
).
|
||||
configure(addSbtIO)
|
||||
|
||||
|
|
@ -122,7 +133,8 @@ lazy val utilTracking = (project in file("util-tracking")).
|
|||
dependsOn(utilCache, utilTesting % Test).
|
||||
settings(
|
||||
commonSettings,
|
||||
name := "Util Tracking"
|
||||
name := "Util Tracking",
|
||||
mimaSettings,
|
||||
).
|
||||
configure(addSbtIO)
|
||||
|
||||
|
|
@ -132,7 +144,8 @@ lazy val utilTesting = (project in internalPath / "util-testing").
|
|||
commonSettings,
|
||||
crossScalaVersions := Seq(scala210, scala211, scala212),
|
||||
name := "Util Testing",
|
||||
libraryDependencies ++= Seq(scalaCheck, scalatest)
|
||||
libraryDependencies ++= Seq(scalaCheck, scalatest),
|
||||
mimaSettings,
|
||||
).
|
||||
configure(addSbtIO)
|
||||
|
||||
|
|
@ -147,7 +160,8 @@ lazy val utilScripted = (project in internalPath / "util-scripted").
|
|||
case sv if sv startsWith "2.12" => Seq(parserCombinator211)
|
||||
case _ => Seq()
|
||||
}
|
||||
}
|
||||
},
|
||||
mimaSettings,
|
||||
).
|
||||
configure(addSbtIO)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
addSbtPlugin("org.scala-sbt" % "sbt-houserules" % "0.3.3")
|
||||
addSbtPlugin("org.scala-sbt" % "sbt-contraband" % "0.3.0-M9")
|
||||
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.14")
|
||||
|
|
|
|||
Loading…
Reference in New Issue