From 77eee9a71cf831c21d91aedc195dc2912cba5445 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 19 Aug 2026 09:21:04 +0100 Subject: [PATCH 1/2] build with pekko 2.0.0-M4 --- build.sbt | 1 + project/PekkoCoreDependency.scala | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build.sbt b/build.sbt index 2408ab22b..c6d755310 100644 --- a/build.sbt +++ b/build.sbt @@ -23,6 +23,7 @@ import com.github.sbt.junit.jupiter.sbt.Import.JupiterKeys sourceDistName := "apache-pekko-http" sourceDistIncubating := false +ThisBuild / resolvers += Resolver.ApacheMavenStagingRepo ThisBuild / reproducibleBuildsCheckResolver := Resolver.ApacheMavenStagingRepo ThisBuild / javafmtFormatterCompatibleJavaVersion := 17 diff --git a/project/PekkoCoreDependency.scala b/project/PekkoCoreDependency.scala index 159f2bc13..0a1dc35bd 100644 --- a/project/PekkoCoreDependency.scala +++ b/project/PekkoCoreDependency.scala @@ -20,6 +20,6 @@ import com.github.pjfanning.pekkobuild.PekkoDependency object PekkoCoreDependency extends PekkoDependency { override val checkProject: String = "pekko-cluster-sharding-typed" override val module: Option[String] = None - override val minVersion: String = "2.0.0-M3" - override val currentVersion: String = "2.0.0-M3" + override val minVersion: String = "2.0.0-M4" + override val currentVersion: String = "2.0.0-M4" } From 7e44975cb21904fa62df2cff71b016d11ab32d29 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 19 Aug 2026 12:18:49 +0100 Subject: [PATCH 2/2] Update HttpEntity.scala --- .../scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala index 7df0376bd..6034c57de 100644 --- a/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala +++ b/http-core/src/main/scala/org/apache/pekko/http/scaladsl/model/HttpEntity.scala @@ -645,8 +645,8 @@ object HttpEntity { private var maxBytes = -1L private var bytesLeft = Long.MaxValue - @nowarn("msg=deprecated") // Attributes.getFirst is deprecated, but we need to use it here override def preStart(): Unit = { + // getFirst has been marked as an internal stable API since Pekko Core 2.0.0-M4 _attributes.getFirst[SizeLimit] match { case Some(limit: SizeLimit) if limit.isDisabled => // "no limit"