Skip to content

Commit

Permalink
Changes needed to build/test/release for 2.12.0 (akka#21789)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanandren authored Nov 3, 2016
1 parent 8f0d1a3 commit e9253c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ class AddressUidExtension(val system: ExtendedActorSystem) extends Extension {
else tlr.nextInt().toLong
}

// used by old remoting and part of public api
@deprecated("Use longAddressUid instead", "2.4.x")
lazy val addressUid: Int = {
// private because GenJavaDoc fails on deprecated annotated lazy val
private lazy val _addressUid: Int = {
if (arteryEnabled) {
throw new IllegalStateException("Int UID must never be used with Artery")
} else longAddressUid.toInt
}

// used by old remoting and part of public api
@deprecated("Use longAddressUid instead", "2.4.x")
def addressUid: Int = _addressUid
}
16 changes: 7 additions & 9 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,17 @@ object Dependencies {
val sslConfigVersion = "0.2.1"

val Versions = Seq(
crossScalaVersions := Seq("2.11.8"), // "2.12.0-RC2"
crossScalaVersions := Seq("2.11.8"), // "2.12.0"
scalaVersion := crossScalaVersions.value.head,
scalaStmVersion := sys.props.get("akka.build.scalaStmVersion").getOrElse("0.7"),
scalaCheckVersion := sys.props.get("akka.build.scalaCheckVersion").getOrElse("1.13.2"),
scalaTestVersion := {
scalaVersion.value match {
case "2.12.0-M5" => "3.0.0"
case _ => "3.0.0"
}
},
scalaCheckVersion := sys.props.get("akka.build.scalaCheckVersion").getOrElse(
if (scalaVersion.value.startsWith("2.12")) "1.13.4" // does not work for 2.11
else "1.13.2"
),
scalaTestVersion := "3.0.0",
java8CompatVersion := {
scalaVersion.value match {
case x if x.startsWith("2.12.0") => "0.8.0-RC8"
case x if x.startsWith("2.12") => "0.8.0"
case _ => "0.7.0"
}
}
Expand Down

0 comments on commit e9253c7

Please sign in to comment.