This is an automated email from the ASF dual-hosted git repository.
pjfanning pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/pekko-http.git
The following commit(s) were added to refs/heads/main by this push:
new 07995950d Update sbt-mima-plugin to 1.2.1 (#1313)
07995950d is described below
commit 07995950de2a1879a02c63dbb8e4c0d9ae33da1f
Author: Scala Steward <[email protected]>
AuthorDate: Thu Sep 24 12:07:50 2026 +0200
Update sbt-mima-plugin to 1.2.1 (#1313)
* Update sbt-mima-plugin to 1.2.1
* Add MiMa 1.2.1 no-longer-checked excludes
Motivation:
sbt-mima-plugin 1.2.1 reports members that became private[..] or sealed
since 1.0.0 as ClassNoLongerChecked, MethodNoLongerChecked and
HierarchyNoLongerChecked problems, failing PR validation.
Modification:
Exclude the compression internals (Deflate/Gzip/NoCoding compressors,
newCompressor, withLevel) in http and the sealed HttpHeaderRange in
http-cors. All were narrowed intentionally in 2.0.x.
Result:
MiMa passes with sbt-mima-plugin 1.2.1.
Tests:
- sbt "http/mimaReportBinaryIssues" "http-cors/mimaReportBinaryIssues":
passed (2.13)
- sbt "++3.x" "http/mimaReportBinaryIssues"
"http-cors/mimaReportBinaryIssues": passed
References:
Refs #1313
---------
Co-authored-by: PJ Fanning <[email protected]>
---
.../mima-1.2.1-no-longer-checked.excludes | 20 +++++++++++++++
.../mima-1.2.1-no-longer-checked.excludes | 30 ++++++++++++++++++++++
project/plugins.sbt | 2 +-
3 files changed, 51 insertions(+), 1 deletion(-)
diff --git
a/http-cors/src/main/mima-filters/2.0.x.backwards.excludes/mima-1.2.1-no-longer-checked.excludes
b/http-cors/src/main/mima-filters/2.0.x.backwards.excludes/mima-1.2.1-no-longer-checked.excludes
new file mode 100644
index 000000000..d31d2a2c9
--- /dev/null
+++
b/http-cors/src/main/mima-filters/2.0.x.backwards.excludes/mima-1.2.1-no-longer-checked.excludes
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# MiMa 1.2.1 reports classes that became sealed as no longer checked.
+# HttpHeaderRange was sealed in 2.0.x.
+ProblemFilters.exclude[HierarchyNoLongerCheckedProblem]("org.apache.pekko.http.cors.scaladsl.model.HttpHeaderRange")
diff --git
a/http/src/main/mima-filters/2.0.x.backwards.excludes/mima-1.2.1-no-longer-checked.excludes
b/http/src/main/mima-filters/2.0.x.backwards.excludes/mima-1.2.1-no-longer-checked.excludes
new file mode 100644
index 000000000..b9417230a
--- /dev/null
+++
b/http/src/main/mima-filters/2.0.x.backwards.excludes/mima-1.2.1-no-longer-checked.excludes
@@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# MiMa 1.2.1 reports members that are now private[..] or sealed in Scala terms
+# as no longer checked. These compression internals were narrowed to
+# private[http] / private[coding] in 2.0.x.
+ProblemFilters.exclude[ClassNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.DeflateCompressor")
+ProblemFilters.exclude[ClassNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.GzipCompressor")
+ProblemFilters.exclude[ClassNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.NoCodingCompressor")
+ProblemFilters.exclude[ClassNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.NoCodingCompressor$")
+ProblemFilters.exclude[MethodNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.Deflate.newCompressor")
+ProblemFilters.exclude[MethodNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.Deflate.withLevel")
+ProblemFilters.exclude[MethodNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.Encoder.newCompressor")
+ProblemFilters.exclude[MethodNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.Gzip.newCompressor")
+ProblemFilters.exclude[MethodNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.Gzip.withLevel")
+ProblemFilters.exclude[MethodNoLongerCheckedProblem]("org.apache.pekko.http.scaladsl.coding.NoCoding.newCompressor")
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 9b5556e80..3b13b42ea 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -12,7 +12,7 @@ resolvers += Classpaths.sbtPluginReleases
addDependencyTreePlugin
addSbtPlugin("com.github.sbt" % "sbt-multi-jvm" % "0.7.0")
-addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.2.0")
+addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.2.1")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.6.2")
addSbtPlugin("com.github.sbt" % "sbt-dynver" % "5.1.1")
addSbtPlugin("com.github.sbt" % "sbt-unidoc" % "0.6.1")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]