use Apache Pekko name for version check (#119)
This commit is contained in:
parent
b6a8e2204b
commit
474ed8b4d0
10 changed files with 23 additions and 31 deletions
|
|
@ -992,7 +992,7 @@ class ByteStringSpec extends AnyWordSpec with Matchers with Checkers {
|
|||
|
||||
"serialize correctly" when {
|
||||
// note that this is serialization with Java serialization
|
||||
// real serialization is in akka-remote
|
||||
// real serialization is in pekko-remote
|
||||
if (util.Properties.versionNumberString.startsWith("2.12")) {
|
||||
"parsing regular ByteString1C as compat" in {
|
||||
val oldSerd =
|
||||
|
|
|
|||
|
|
@ -315,7 +315,7 @@ trait ScalaActorSelection {
|
|||
* nested path descriptions whenever using ! on them, the idea being that the
|
||||
* message is delivered by traversing the various actor paths involved.
|
||||
*/
|
||||
@SerialVersionUID(2L) // it has protobuf serialization in akka-remote
|
||||
@SerialVersionUID(2L) // it has protobuf serialization in pekko-remote
|
||||
private[pekko] final case class ActorSelectionMessage(
|
||||
msg: Any,
|
||||
elements: immutable.Iterable[SelectionPathElement],
|
||||
|
|
|
|||
|
|
@ -1049,7 +1049,7 @@ private[pekko] class ActorSystemImpl(
|
|||
if (settings.LogDeadLetters > 0)
|
||||
logDeadLetterListener = Some(systemActorOf(Props[DeadLetterListener](), "deadLetterListener"))
|
||||
eventStream.startUnsubscriber()
|
||||
ManifestInfo(this).checkSameVersion("Akka", allModules, logWarning = true)
|
||||
ManifestInfo(this).checkSameVersion("Apache Pekko", allModules, logWarning = true)
|
||||
if (!terminating)
|
||||
loadExtensions()
|
||||
if (LogConfigOnStart) logConfiguration()
|
||||
|
|
|
|||
|
|
@ -43,14 +43,7 @@ object ManifestInfo extends ExtensionId[ManifestInfo] with ExtensionIdProvider {
|
|||
private val BundleVersion = "Bundle-Version"
|
||||
private val BundleVendor = "Bundle-Vendor"
|
||||
|
||||
private val knownVendors = Set(
|
||||
"org.apache.pekko",
|
||||
"com.typesafe.akka",
|
||||
"com.lightbend.akka",
|
||||
"Lightbend Inc.",
|
||||
"Lightbend",
|
||||
"com.lightbend.lagom",
|
||||
"com.typesafe.play")
|
||||
private val knownVendors = Set("org.apache.pekko")
|
||||
|
||||
override def get(system: ActorSystem): ManifestInfo = super.get(system)
|
||||
override def get(system: ClassicActorSystemProvider): ManifestInfo = super.get(system)
|
||||
|
|
|
|||
15
build.sbt
15
build.sbt
|
|
@ -170,7 +170,7 @@ lazy val clusterMetrics = pekkoModule("cluster-metrics")
|
|||
.enablePlugins(MultiNodeScalaTest)
|
||||
|
||||
lazy val clusterSharding = pekkoModule("cluster-sharding")
|
||||
// TODO akka-persistence dependency should be provided in pom.xml artifact.
|
||||
// TODO pekko-persistence dependency should be provided in pom.xml artifact.
|
||||
// If I only use "provided" here it works, but then we can't run tests.
|
||||
// Scope "test" is alright in the pom.xml, but would have been nicer with
|
||||
// provided.
|
||||
|
|
@ -308,7 +308,7 @@ lazy val persistenceQuery = pekkoModule("persistence-query")
|
|||
.settings(OSGi.persistenceQuery)
|
||||
.settings(Protobuf.settings)
|
||||
// To be able to import ContainerFormats.proto
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "akka-remote" / "src" / "main" / "protobuf"))
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "remote" / "src" / "main" / "protobuf"))
|
||||
.settings(Test / fork := true)
|
||||
.enablePlugins(ScaladocNoVerificationOfDiagrams)
|
||||
|
||||
|
|
@ -389,7 +389,7 @@ lazy val protobufV3 = pekkoModule("protobuf-v3")
|
|||
// Prevent cyclic task dependencies, see https://github.com/sbt/sbt-assembly/issues/365
|
||||
assembly / fullClasspath := (Runtime / managedClasspath).value, // otherwise, there's a cyclic dependency between packageBin and assembly
|
||||
assembly / test := {}, // assembly runs tests for unknown reason which introduces another cyclic dependency to packageBin via exportedJars
|
||||
description := "Akka Protobuf V3 is a shaded version of the protobuf runtime. Original POM: https://github.com/protocolbuffers/protobuf/blob/v3.9.0/java/pom.xml")
|
||||
description := "Apache Pekko Protobuf V3 is a shaded version of the protobuf runtime. Original POM: https://github.com/protocolbuffers/protobuf/blob/v3.9.0/java/pom.xml")
|
||||
|
||||
lazy val pki =
|
||||
pekkoModule("pki")
|
||||
|
|
@ -397,7 +397,6 @@ lazy val pki =
|
|||
.settings(Dependencies.pki)
|
||||
.settings(AutomaticModuleName.settings("pekko.pki"))
|
||||
.settings(MetaInfLicenseNoticeCopy.settings)
|
||||
// The akka-pki artifact was added in Akka 2.6.2, no MiMa checks yet.
|
||||
.disablePlugins(MimaPlugin)
|
||||
|
||||
lazy val remote =
|
||||
|
|
@ -523,7 +522,7 @@ lazy val persistenceTyped = pekkoModule("persistence-typed")
|
|||
.settings(MetaInfLicenseNoticeCopy.settings)
|
||||
.settings(Protobuf.settings)
|
||||
// To be able to import ContainerFormats.proto
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "akka-remote" / "src" / "main" / "protobuf"))
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "remote" / "src" / "main" / "protobuf"))
|
||||
.settings(OSGi.persistenceTyped)
|
||||
|
||||
lazy val clusterTyped = pekkoModule("cluster-typed")
|
||||
|
|
@ -538,12 +537,12 @@ lazy val clusterTyped = pekkoModule("cluster-typed")
|
|||
jackson % "test->test")
|
||||
.settings(Protobuf.settings)
|
||||
// To be able to import ContainerFormats.proto
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "akka-remote" / "src" / "main" / "protobuf"))
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "remote" / "src" / "main" / "protobuf"))
|
||||
.settings(AutomaticModuleName.settings("pekko.cluster.typed"))
|
||||
.settings(MetaInfLicenseNoticeCopy.settings)
|
||||
.settings(Protobuf.settings)
|
||||
// To be able to import ContainerFormats.proto
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "akka-remote" / "src" / "main" / "protobuf"))
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "remote" / "src" / "main" / "protobuf"))
|
||||
.configs(MultiJvm)
|
||||
.enablePlugins(MultiNodeScalaTest)
|
||||
|
||||
|
|
@ -565,7 +564,7 @@ lazy val clusterShardingTyped = pekkoModule("cluster-sharding-typed")
|
|||
.settings(MetaInfLicenseNoticeCopy.settings)
|
||||
// To be able to import ContainerFormats.proto
|
||||
.settings(Protobuf.settings)
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "akka-remote" / "src" / "main" / "protobuf"))
|
||||
.settings(Protobuf.importPath := Some(baseDirectory.value / ".." / "remote" / "src" / "main" / "protobuf"))
|
||||
.configs(MultiJvm)
|
||||
.enablePlugins(MultiNodeScalaTest)
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ object JdkOptions extends AutoPlugin {
|
|||
Seq(if (scalaVersion.startsWith("3.")) "-Xtarget:8" else "-target:jvm-1.8"),
|
||||
// '-release 8' is not enough, for some reason we need the 8 rt.jar
|
||||
// explicitly. To test whether this has the desired effect, compile
|
||||
// akka-remote and check the invocation of 'ByteBuffer.clear()' in
|
||||
// pekko-remote and check the invocation of 'ByteBuffer.clear()' in
|
||||
// EnvelopeBuffer.class with 'javap -c': it should refer to
|
||||
// ""java/nio/ByteBuffer.clear:()Ljava/nio/Buffer" and not
|
||||
// "java/nio/ByteBuffer.clear:()Ljava/nio/ByteBuffer". Issue #27079
|
||||
|
|
|
|||
|
|
@ -29,16 +29,16 @@ object Publish extends AutoPlugin {
|
|||
publishTo := Some(akkaPublishTo.value),
|
||||
publishRsyncHost := "akkarepo@gustav.akka.io",
|
||||
credentials ++= akkaCredentials,
|
||||
organizationName := "Lightbend Inc.",
|
||||
organizationHomepage := Some(url("https://www.lightbend.com")),
|
||||
sonatypeProfileName := "com.typesafe",
|
||||
startYear := Some(2009),
|
||||
organizationName := "Apache Software Foundation",
|
||||
organizationHomepage := Some(url("https://www.apache.org")),
|
||||
sonatypeProfileName := "org.apache.pekko",
|
||||
startYear := Some(2022),
|
||||
developers := List(
|
||||
Developer(
|
||||
"akka-contributors",
|
||||
"Akka Contributors",
|
||||
"akka.official@gmail.com",
|
||||
url("https://github.com/akka/akka/graphs/contributors"))),
|
||||
"pekko-contributors",
|
||||
"Apache Pekko Contributors",
|
||||
"dev@pekko.apache.org",
|
||||
url("https://github.com/apache/incubator-pekko/graphs/contributors"))),
|
||||
publishMavenStyle := true,
|
||||
pomIncludeRepository := { x =>
|
||||
false
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# External Aeron Media Driver using this properties file (loaded as classpath resource)
|
||||
# can be run with:
|
||||
# sbt "akka-remote/test:runMain io.aeron.driver.MediaDriver aeron.properties"
|
||||
# sbt "remote/test:runMain io.aeron.driver.MediaDriver aeron.properties"
|
||||
|
||||
aeron.mtu.length=16384
|
||||
aeron.socket.so_sndbuf=2097152
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class PemManagersProviderSpec extends AnyWordSpec with Matchers {
|
|||
"A PemManagersProvider" must {
|
||||
|
||||
"load stores reading files setup in config (akka-pki samples)" in {
|
||||
// These set of certificates are valid PEMs but are invalid for akka-remote
|
||||
// These set of certificates are valid PEMs but are invalid for pekko-remote
|
||||
// use. Either the key length, certificate usage limitations (via the UsageKeyExtensions),
|
||||
// or the fact that the key's certificate is self-signed cause one of the following
|
||||
// errors: `certificate_unknown`, `certificate verify message signature error`/`bad_certificate`
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ class BoundedSourceQueueSpec extends StreamSpec("""pekko.loglevel = debug
|
|||
result.futureValue should be(counter.get())
|
||||
}
|
||||
|
||||
// copied from akka-remote SendQueueSpec
|
||||
// copied from pekko-remote SendQueueSpec
|
||||
"deliver bursts of messages" in {
|
||||
// this test verifies that the wakeup signal is triggered correctly
|
||||
val burstSize = 100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue