Skip to content

Commit

Permalink
Merge branch 'main' into update/sbt-welcome-0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin authored Oct 16, 2023
2 parents b8f61aa + 5314dcf commit 0e42eb6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private[pekko] trait ExtensionsImpl extends Extensions { self: ActorSystem[_] wi
/*
* @param throwOnLoadFail Throw exception when an extension fails to load (needed for backwards compatibility)
*/
def loadExtensions(key: String, throwOnLoadFail: Boolean): Unit = {
def loadExtensionsFor(key: String, throwOnLoadFail: Boolean): Unit = {

settings.config.getStringList(key).asScala.foreach { extensionIdFQCN =>
// it is either a Scala object or it is a Java class with a static singleton accessor
Expand Down Expand Up @@ -72,8 +72,8 @@ private[pekko] trait ExtensionsImpl extends Extensions { self: ActorSystem[_] wi
}
}

loadExtensions("pekko.actor.typed.library-extensions", throwOnLoadFail = true)
loadExtensions("pekko.actor.typed.extensions", throwOnLoadFail = false)
loadExtensionsFor("pekko.actor.typed.library-extensions", throwOnLoadFail = true)
loadExtensionsFor("pekko.actor.typed.extensions", throwOnLoadFail = false)
}

final override def hasExtension(ext: ExtensionId[_ <: Extension]): Boolean = findExtension(ext) != null
Expand Down
35 changes: 17 additions & 18 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ object Dependencies {
val agronaVersion = "1.19.2"
val nettyVersion = "4.1.100.Final"
val protobufJavaVersion = "3.19.6"
val logbackVersion = "1.2.11"
val logbackVersion = "1.2.12"

val jacksonCoreVersion = "2.14.3"
val jacksonDatabindVersion = jacksonCoreVersion
Expand All @@ -46,10 +46,9 @@ object Dependencies {

val sslConfigVersion = "0.6.1"

val scalaTestVersion = "3.2.14"
val scalaTestBaseVersion = "3.2.10"
val scalaTestScalaCheckVersion = "1-16"
val scalaCheckVersion = "1.15.1"
val scalaTestVersion = "3.2.17"
val scalaTestScalaCheckVersion = "1-17"
val scalaCheckVersion = "1.17.0"

val Versions =
Seq(crossScalaVersions := allScalaVersions, scalaVersion := allScalaVersions.head,
Expand All @@ -73,7 +72,7 @@ object Dependencies {

val sigar = "org.fusesource" % "sigar" % "1.6.4"

val jctools = "org.jctools" % "jctools-core" % "3.3.0"
val jctools = "org.jctools" % "jctools-core" % "4.0.1"

// reactive streams
val reactiveStreams = "org.reactivestreams" % "reactive-streams" % reactiveStreamsVersion
Expand All @@ -83,7 +82,7 @@ object Dependencies {
"com.typesafe" %% "ssl-config-core" % sslConfigVersion
}

val lmdb = "org.lmdbjava" % "lmdbjava" % "0.7.0"
val lmdb = "org.lmdbjava" % "lmdbjava" % "0.8.3"

val junit = "junit" % "junit" % junitVersion

Expand All @@ -97,7 +96,7 @@ object Dependencies {
// Added explicitly for when artery tcp is used
val agrona = "org.agrona" % "agrona" % agronaVersion

val asnOne = ("com.hierynomus" % "asn-one" % "0.5.0").exclude("org.slf4j", "slf4j-api")
val asnOne = ("com.hierynomus" % "asn-one" % "0.6.0").exclude("org.slf4j", "slf4j-api")

val jacksonCore = Def.setting {
"com.fasterxml.jackson.core" % "jackson-core" % jacksonCoreVersion
Expand Down Expand Up @@ -129,15 +128,15 @@ object Dependencies {

object Docs {
val sprayJson = "io.spray" %% "spray-json" % "1.3.6" % Test
val gson = "com.google.code.gson" % "gson" % "2.9.1" % Test
val gson = "com.google.code.gson" % "gson" % "2.10.1" % Test
}

object TestDependencies {
val bcpkix = "org.bouncycastle" % "bcpkix-jdk15on" % "1.68" % Test
val bcpkix = "org.bouncycastle" % "bcpkix-jdk18on" % "1.76" % Test
val commonsMath = "org.apache.commons" % "commons-math" % "2.2" % Test
val commonsIo = "commons-io" % "commons-io" % "2.11.0" % Test
val commonsCodec = "commons-codec" % "commons-codec" % "1.15" % Test
val commonsCompress = "org.apache.commons" % "commons-compress" % "1.23.0" % Test
val commonsIo = "commons-io" % "commons-io" % "2.14.0" % Test
val commonsCodec = "commons-codec" % "commons-codec" % "1.16.0" % Test
val commonsCompress = "org.apache.commons" % "commons-compress" % "1.24.0" % Test
val junit = "junit" % "junit" % junitVersion % Test
val httpClient = "org.apache.httpcomponents" % "httpclient" % "4.5.14" % Test

Expand All @@ -152,21 +151,21 @@ object Dependencies {
"org.scalatestplus" %% "junit-4-13" % (scalaTestVersion + ".0") % Test
}
val scalatestTestNG = Def.setting {
"org.scalatestplus" %% "testng-6-7" % (scalaTestBaseVersion + ".0") % Test
"org.scalatestplus" %% "testng-7-5" % (scalaTestVersion + ".0") % Test
}
val scalatestScalaCheck = Def.setting {
"org.scalatestplus" %% s"scalacheck-$scalaTestScalaCheckVersion" % (scalaTestVersion + ".0") % Test
}
val scalatestMockito = Def.setting {
"org.scalatestplus" %% "mockito-3-4" % (scalaTestBaseVersion + ".0") % Test
"org.scalatestplus" %% "mockito-4-11" % (scalaTestVersion + ".0") % Test
}

val pojosr = "com.googlecode.pojosr" % "de.kalpatec.pojosr.framework" % "0.2.1" % Test
val tinybundles = "org.ops4j.pax.tinybundles" % "tinybundles" % "3.0.0" % Test
val log4j = "log4j" % "log4j" % "1.2.17" % Test

// in-memory filesystem for file related tests
val jimfs = "com.google.jimfs" % "jimfs" % "1.1" % Test
val jimfs = "com.google.jimfs" % "jimfs" % "1.3.0" % Test

// docker utils
val dockerClient = "com.spotify" % "docker-client" % "8.16.0" % Test
Expand All @@ -182,8 +181,8 @@ object Dependencies {
}

// metrics, measurements, perf testing
val metrics = "io.dropwizard.metrics" % "metrics-core" % "4.2.10" % Test
val metricsJvm = "io.dropwizard.metrics" % "metrics-jvm" % "4.2.10" % Test
val metrics = "io.dropwizard.metrics" % "metrics-core" % "4.2.21" % Test
val metricsJvm = "io.dropwizard.metrics" % "metrics-jvm" % "4.2.21" % Test
val latencyUtils = "org.latencyutils" % "LatencyUtils" % "2.0.3" % Test
val hdrHistogram = "org.hdrhistogram" % "HdrHistogram" % "2.1.12" % Test
val metricsAll = Seq(metrics, metricsJvm, latencyUtils, hdrHistogram)
Expand Down
8 changes: 4 additions & 4 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,25 @@ addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "2.1.3")
addSbtPlugin("com.lightbend.sbt" % "sbt-java-formatter" % "0.7.0")
addSbtPlugin("com.lightbend.sbt" % "sbt-bill-of-materials" % "1.0.2")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.33")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.11.1")
// sbt-osgi 0.9.5 is available but breaks including jdk9-only classes
// sbt-osgi 0.9.6 is available but breaks populating pekko-protobuf-v3
addSbtPlugin("com.typesafe.sbt" % "sbt-osgi" % "0.9.4")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.5.0")
addSbtPlugin("com.thoughtworks.sbt-api-mappings" % "sbt-api-mappings" % "3.0.2")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.6")
addSbtPlugin("io.spray" % "sbt-boilerplate" % "0.6.1")

addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0")
addSbtPlugin("com.hpe.sbt" % "sbt-pull-request-validator" % "1.0.0")
addSbtPlugin("net.bzzt" % "sbt-reproducible-builds" % "0.31")

addSbtPlugin("com.dwijnand" % "sbt-dynver" % "4.1.1")
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.0.1")
addSbtPlugin("com.github.pjfanning" % "sbt-source-dist" % "0.1.10")
addSbtPlugin("org.mdedetrich" % "sbt-apache-sonatype" % "0.1.10")
addSbtPlugin("com.github.reibitto" % "sbt-welcome" % "0.3.2")
addSbtPlugin("com.github.sbt" % "sbt-license-report" % "1.5.0")
addSbtPlugin("com.github.sbt" % "sbt-license-report" % "1.6.1")

// We have to deliberately use older versions of sbt-paradox because current Pekko sbt build
// only loads on JDK 1.8 so we need to bring in older versions of parboiled which support JDK 1.8
Expand Down

0 comments on commit 0e42eb6

Please sign in to comment.