Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add migration manager to prevent binary incompatiblities

  • Loading branch information...
commit 79e12c4095e9ce4c2cbf7934d7ebedb50e9665ff 1 parent 633e5b8
@johnynek johnynek authored
Showing with 8 additions and 1 deletion.
  1. +6 −1 project/Build.scala
  2. +2 −0  project/plugins.sbt
View
7 project/Build.scala
@@ -3,6 +3,8 @@ package algebird
import sbt._
import Keys._
import sbtgitflow.ReleasePlugin._
+import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
+import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
object AlgebirdBuild extends Build {
val sharedSettings = Project.defaultSettings ++ releaseSettings ++ Seq(
@@ -64,7 +66,7 @@ object AlgebirdBuild extends Build {
<url>http://twitter.com/sritchie</url>
</developer>
</developers>)
- )
+ ) ++ mimaDefaultSettings
lazy val algebird = Project(
id = "algebird",
@@ -85,6 +87,7 @@ object AlgebirdBuild extends Build {
).settings(
test := { }, // All tests reside in algebirdTest
name := "algebird-core",
+ previousArtifact := Some("com.twitter" % "algebird-core_2.9.2" % "0.1.11"),
libraryDependencies += "com.googlecode.javaewah" % "JavaEWAH" % "0.6.6"
)
@@ -94,6 +97,7 @@ object AlgebirdBuild extends Build {
settings = sharedSettings
).settings(
name := "algebird-test",
+ previousArtifact := Some("com.twitter" % "algebird-test_2.9.2" % "0.1.11"),
libraryDependencies ++= Seq(
"org.scalacheck" %% "scalacheck" % "1.10.0",
"org.scala-tools.testing" %% "specs" % "1.6.9"
@@ -106,6 +110,7 @@ object AlgebirdBuild extends Build {
settings = sharedSettings
).settings(
name := "algebird-util",
+ previousArtifact := Some("com.twitter" % "algebird-util_2.9.2" % "0.1.11"),
libraryDependencies += "com.twitter" %% "util-core" % "6.2.0"
).dependsOn(algebirdCore, algebirdTest % "compile->test")
}
View
2  project/plugins.sbt
@@ -8,3 +8,5 @@ addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.5.0")
addSbtPlugin("com.twitter" % "sbt-gitflow" % "0.1.0")
addSbtPlugin("com.jsuereth" % "xsbt-gpg-plugin" % "0.6")
+
+addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.5")
Please sign in to comment.
Something went wrong with that request. Please try again.