Skip to content

Commit

Permalink
Merge pull request akka#488 from akka/wip-1953-migration-manager-ban
Browse files Browse the repository at this point in the history
Wip 1953 migration manager ban
  • Loading branch information
viktorklang committed May 28, 2012
2 parents b5c2328 + 8e95104 commit 1ed95a3
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 31 deletions.
10 changes: 6 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
seq(lsSettings:_*)
// ls-sbt is not published for 0.11.3

(LsKeys.tags in LsKeys.lsync) := Seq("actors", "stm", "concurrency", "distributed", "fault-tolerance", "scala", "java", "futures", "dataflow", "remoting")
// seq(lsSettings:_*)

(externalResolvers in LsKeys.lsync) := Seq("Akka Repository" at "http://akka.io/repository/")
// (LsKeys.tags in LsKeys.lsync) := Seq("actors", "stm", "concurrency", "distributed", "fault-tolerance", "scala", "java", "futures", "dataflow", "remoting")

(description in LsKeys.lsync) := "Akka is the platform for the next generation of event-driven, scalable and fault-tolerant architectures on the JVM."
// (externalResolvers in LsKeys.lsync) := Seq("Akka Repository" at "http://akka.io/repository/")

// (description in LsKeys.lsync) := "Akka is the platform for the next generation of event-driven, scalable and fault-tolerant architectures on the JVM."

67 changes: 47 additions & 20 deletions project/AkkaBuild.scala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
*/

Expand All @@ -8,9 +8,10 @@ import sbt._
import sbt.Keys._
import com.typesafe.sbtmultijvm.MultiJvmPlugin
import com.typesafe.sbtmultijvm.MultiJvmPlugin.{ MultiJvm, extraOptions, jvmOptions, scalatestOptions }
import com.typesafe.schoir.SchoirPlugin.schoirSettings
import com.typesafe.sbtscalariform.ScalariformPlugin
import com.typesafe.sbtscalariform.ScalariformPlugin.ScalariformKeys
import com.typesafe.tools.mima.plugin.MimaPlugin.mimaDefaultSettings
import com.typesafe.tools.mima.plugin.MimaKeys.previousArtifact
import java.lang.Boolean.getBoolean

object AkkaBuild extends Build {
Expand All @@ -25,7 +26,8 @@ object AkkaBuild extends Build {
lazy val akka = Project(
id = "akka",
base = file("."),
settings = parentSettings ++ Release.settings ++ Unidoc.settings ++ Rstdoc.settings ++ Publish.versionSettings ++ Dist.settings ++ Seq(
settings = parentSettings ++ Release.settings ++ Unidoc.settings ++ Rstdoc.settings ++ Publish.versionSettings ++
Dist.settings ++ mimaSettings ++ Seq(
testMailbox in GlobalScope := System.getProperty("akka.testMailbox", "false").toBoolean,
parallelExecution in GlobalScope := System.getProperty("akka.parallelExecution", "false").toBoolean,
Publish.defaultPublishTo in ThisBuild <<= crossTarget / "repository",
Expand All @@ -43,7 +45,8 @@ object AkkaBuild extends Build {
libraryDependencies <+= scalaVersion { v => compilerPlugin("org.scala-lang.plugins" % "continuations" % v) },
scalacOptions += "-P:continuations:enable",
// to fix scaladoc generation
fullClasspath in doc in Compile <<= fullClasspath in Compile
fullClasspath in doc in Compile <<= fullClasspath in Compile,
previousArtifact := akkaPreviousArtifact("akka-actor")
)
)

Expand All @@ -52,7 +55,8 @@ object AkkaBuild extends Build {
base = file("akka-testkit"),
dependencies = Seq(actor),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.testkit
libraryDependencies ++= Dependencies.testkit,
previousArtifact := akkaPreviousArtifact("akka-testkit")
)
)

Expand All @@ -72,7 +76,7 @@ object AkkaBuild extends Build {
id = "akka-remote",
base = file("akka-remote"),
dependencies = Seq(actor, actorTests % "test->test", testkit % "test->test"),
settings = defaultSettings ++ multiJvmSettings ++ schoirSettings ++ Seq(
settings = defaultSettings ++ multiJvmSettings ++ Seq(
libraryDependencies ++= Dependencies.remote,
// disable parallel tests
parallelExecution in Test := false,
Expand All @@ -83,15 +87,16 @@ object AkkaBuild extends Build {
jvmOptions in MultiJvm := {
if (getBoolean("sbt.log.noformat")) Seq("-Dakka.test.nocolor=true") else Nil
},
test in Test <<= (test in Test) dependsOn (test in MultiJvm)
test in Test <<= (test in Test) dependsOn (test in MultiJvm),
previousArtifact := akkaPreviousArtifact("akka-remote")
)
) configs (MultiJvm)

// lazy val cluster = Project(
// id = "akka-cluster",
// base = file("akka-cluster"),
// dependencies = Seq(remote, remote % "test->test", testkit % "test->test"),
// settings = defaultSettings ++ multiJvmSettings ++ schoirSettings ++ Seq(
// settings = defaultSettings ++ multiJvmSettings ++ Seq(
// libraryDependencies ++= Dependencies.cluster,
// // disable parallel tests
// parallelExecution in Test := false,
Expand Down Expand Up @@ -120,7 +125,8 @@ object AkkaBuild extends Build {
base = file("akka-agent"),
dependencies = Seq(actor, testkit % "test->test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.agent
libraryDependencies ++= Dependencies.agent,
previousArtifact := akkaPreviousArtifact("akka-agent")
)
)

Expand All @@ -129,7 +135,8 @@ object AkkaBuild extends Build {
base = file("akka-transactor"),
dependencies = Seq(actor, testkit % "test->test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.transactor
libraryDependencies ++= Dependencies.transactor,
previousArtifact := akkaPreviousArtifact("akka-transactor")
)
)

Expand All @@ -156,7 +163,8 @@ object AkkaBuild extends Build {
base = file("akka-durable-mailboxes/akka-mailboxes-common"),
dependencies = Seq(remote, testkit % "compile;test->test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.mailboxes
libraryDependencies ++= Dependencies.mailboxes,
previousArtifact := akkaPreviousArtifact("akka-mailboxes-common")
)
)

Expand All @@ -168,7 +176,8 @@ object AkkaBuild extends Build {
dependencies = Seq(mailboxesCommon % "compile;test->test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.beanstalkMailbox,
testOptions in Test <+= testMailbox map { test => Tests.Filter(s => test) }
testOptions in Test <+= testMailbox map { test => Tests.Filter(s => test) },
previousArtifact := akkaPreviousArtifact("akka-beanstalk-mailbox")
)
)

Expand All @@ -177,7 +186,8 @@ object AkkaBuild extends Build {
base = file("akka-durable-mailboxes/akka-file-mailbox"),
dependencies = Seq(mailboxesCommon % "compile;test->test", testkit % "test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.fileMailbox
libraryDependencies ++= Dependencies.fileMailbox,
previousArtifact := akkaPreviousArtifact("akka-file-mailbox")
)
)

Expand All @@ -187,7 +197,8 @@ object AkkaBuild extends Build {
dependencies = Seq(mailboxesCommon % "compile;test->test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.redisMailbox,
testOptions in Test <+= testMailbox map { test => Tests.Filter(s => test) }
testOptions in Test <+= testMailbox map { test => Tests.Filter(s => test) },
previousArtifact := akkaPreviousArtifact("akka-redis-mailbox")
)
)

Expand All @@ -196,7 +207,8 @@ object AkkaBuild extends Build {
base = file("akka-durable-mailboxes/akka-zookeeper-mailbox"),
dependencies = Seq(mailboxesCommon % "compile;test->test", testkit % "test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.zookeeperMailbox
libraryDependencies ++= Dependencies.zookeeperMailbox,
previousArtifact := akkaPreviousArtifact("akka-zookeeper-mailbox")
)
)

Expand All @@ -207,7 +219,8 @@ object AkkaBuild extends Build {
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.mongoMailbox,
ivyXML := Dependencies.mongoMailboxExcludes,
testOptions in Test <+= testMailbox map { test => Tests.Filter(s => test) }
testOptions in Test <+= testMailbox map { test => Tests.Filter(s => test) },
previousArtifact := akkaPreviousArtifact("akka-mongo-mailbox")
)
)

Expand All @@ -217,7 +230,8 @@ object AkkaBuild extends Build {
base = file("akka-zeromq"),
dependencies = Seq(actor, testkit % "test;test->test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.zeroMQ
libraryDependencies ++= Dependencies.zeroMQ,
previousArtifact := akkaPreviousArtifact("akka-zeromq")
)
)

Expand All @@ -236,15 +250,18 @@ object AkkaBuild extends Build {
base = file("akka-kernel"),
dependencies = Seq(actor, testkit % "test->test"),
settings = defaultSettings ++ Seq(
libraryDependencies ++= Dependencies.kernel
libraryDependencies ++= Dependencies.kernel,
previousArtifact := akkaPreviousArtifact("akka-kernel")
)
)

lazy val actorMigration = Project(
id = "akka-actor-migration",
base = file("akka-actor-migration"),
dependencies = Seq(actor, testkit % "test->test"),
settings = defaultSettings
settings = defaultSettings ++ Seq(
previousArtifact := akkaPreviousArtifact("akka-actor-migration")
)
)

lazy val akkaSbtPlugin = Project(
Expand Down Expand Up @@ -345,7 +362,7 @@ object AkkaBuild extends Build {

val defaultExcludedTags = Seq("timing")

lazy val defaultSettings = baseSettings ++ formatSettings ++ Seq(
lazy val defaultSettings = baseSettings ++ formatSettings ++ mimaSettings ++ Seq(
resolvers += "Typesafe Repo" at "http://repo.typesafe.com/typesafe/releases/",

// compile options
Expand Down Expand Up @@ -410,6 +427,16 @@ object AkkaBuild extends Build {
compileInputs in MultiJvm <<= (compileInputs in MultiJvm) dependsOn (ScalariformKeys.format in MultiJvm),
ScalariformKeys.preferences in MultiJvm := formattingPreferences
)

lazy val mimaSettings = mimaDefaultSettings ++ Seq(
// MiMa
previousArtifact := None
)

def akkaPreviousArtifact(id: String, organization: String = "com.typesafe.akka", version: String = "2.0"): Option[sbt.ModuleID] = {
// the artifact to compare binary compatibility with
Some(organization % id % version)
}
}

// Dependencies
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version=0.11.2
sbt.version=0.11.3
16 changes: 10 additions & 6 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ resolvers += Classpaths.typesafeResolver

addSbtPlugin("com.typesafe.sbtmultijvm" % "sbt-multi-jvm" % "0.1.9")

addSbtPlugin("com.typesafe.schoir" % "schoir" % "0.1.2")
addSbtPlugin("com.typesafe.sbtscalariform" % "sbtscalariform" % "0.4.0")

addSbtPlugin("com.typesafe.sbtscalariform" % "sbtscalariform" % "0.3.1")
resolvers += Resolver.url("sbt-plugin-releases", new URL("http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)

resolvers ++= Seq(
"less is" at "http://repo.lessis.me",
"coda" at "http://repo.codahale.com")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "0.1.3")

addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.1")
// ls-sbt is not published for 0.11.3

//resolvers ++= Seq(
// "less is" at "http://repo.lessis.me",
// "coda" at "http://repo.codahale.com")

//addSbtPlugin("me.lessis" % "ls-sbt" % "0.1.1")

0 comments on commit 1ed95a3

Please sign in to comment.