You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by he...@apache.org on 2024/02/28 04:53:28 UTC
(incubator-pekko) branch main updated: chore: Update Scala to 2.13.13 (#1155)
This is an automated email from the ASF dual-hosted git repository.
hepin pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko.git
The following commit(s) were added to refs/heads/main by this push:
new d884540c92 chore: Update Scala to 2.13.13 (#1155)
d884540c92 is described below
commit d884540c92d0d38797c32f217107d97e15cdafbe
Author: He-Pin(kerr) <he...@gmail.com>
AuthorDate: Wed Feb 28 12:53:22 2024 +0800
chore: Update Scala to 2.13.13 (#1155)
* chore: Update Scala to 2.13.13
* chore: Remove unused imports
* chore: Update Scala version to 2.13.13 in link-validator.conf
---
.../scala/org/apache/pekko/osgi/PojoSRTestSupport.scala | 1 -
project/Dependencies.scala | 2 +-
project/PekkoDisciplinePlugin.scala | 13 ++++++++-----
scripts/link-validator.conf | 8 ++++----
4 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/osgi/src/test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala b/osgi/src/test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala
index 68200756ff..d7bb7a02fc 100644
--- a/osgi/src/test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala
+++ b/osgi/src/test/scala/org/apache/pekko/osgi/PojoSRTestSupport.scala
@@ -167,7 +167,6 @@ class BundleDescriptorBuilder(name: String) {
}
def extractHeaders(file: File): HashMap[String, String] = {
- import scala.collection.JavaConverters.iterableAsScalaIterableConverter
val headers = new HashMap[String, String]()
val jis = new JarInputStream(new FileInputStream(file))
try {
diff --git a/project/Dependencies.scala b/project/Dependencies.scala
index 3c73227920..297e2d3b2c 100644
--- a/project/Dependencies.scala
+++ b/project/Dependencies.scala
@@ -37,7 +37,7 @@ object Dependencies {
val jacksonDatabindVersion = jacksonCoreVersion
val scala212Version = "2.12.19"
- val scala213Version = "2.13.12"
+ val scala213Version = "2.13.13"
val scala3Version = "3.3.1"
val allScalaVersions = Seq(scala213Version, scala212Version, scala3Version)
diff --git a/project/PekkoDisciplinePlugin.scala b/project/PekkoDisciplinePlugin.scala
index a94c0420fe..9f79e53bb2 100644
--- a/project/PekkoDisciplinePlugin.scala
+++ b/project/PekkoDisciplinePlugin.scala
@@ -74,16 +74,19 @@ object PekkoDisciplinePlugin extends AutoPlugin {
"pekko-stream-tests-tck",
"pekko-testkit")
- val defaultScalaOptions = "-Wconf:cat=unused-nowarn:s,any:e"
+ lazy val defaultScalaOptions = Def.setting(CrossVersion.partialVersion(scalaVersion.value) match {
+ case Some((2, 12)) => "-Wconf:cat=unused-nowarn:s,any:e"
+ case _ => "-Wconf:cat=unused-nowarn:s,cat=lint-named-booleans:s,cat=other-shadowing:s,any:e"
+ })
lazy val nowarnSettings = Seq(
Compile / scalacOptions ++= (
if (scalaVersion.value.startsWith("3.")) Nil
- else Seq(defaultScalaOptions)
+ else Seq(defaultScalaOptions.value)
),
Test / scalacOptions ++= (
if (scalaVersion.value.startsWith("3.")) Nil
- else Seq(defaultScalaOptions)
+ else Seq(defaultScalaOptions.value)
),
Compile / doc / scalacOptions := Seq())
@@ -97,13 +100,13 @@ object PekkoDisciplinePlugin extends AutoPlugin {
*/
lazy val docs =
Seq(
- Compile / scalacOptions -= defaultScalaOptions,
+ Compile / scalacOptions -= defaultScalaOptions.value,
Compile / scalacOptions ++= (
if (scalaVersion.value.startsWith("3.")) Nil
else Seq("-Wconf:cat=unused:s,cat=deprecation:s,cat=unchecked:s,any:e")
),
Test / scalacOptions --= Seq("-Xlint", "-unchecked", "-deprecation"),
- Test / scalacOptions -= defaultScalaOptions,
+ Test / scalacOptions -= defaultScalaOptions.value,
Test / scalacOptions ++= (
if (scalaVersion.value.startsWith("3.")) Nil
else Seq("-Wconf:cat=unused:s,cat=deprecation:s,cat=unchecked:s,any:e")
diff --git a/scripts/link-validator.conf b/scripts/link-validator.conf
index 70dbcba93f..7324cd3d98 100644
--- a/scripts/link-validator.conf
+++ b/scripts/link-validator.conf
@@ -61,10 +61,10 @@ site-link-validator {
"http://pholser.github.com/jopt-simple"
"http://pojosr.googlecode.com/"
"http://team.ops4j.org/wiki/display/ops4j/Tinybundles"
- "https://www.scala-lang.org/api/2.13.12/scala/runtime/AbstractFunction1.html"
- "https://www.scala-lang.org/api/2.13.12/scala/runtime/AbstractFunction2.html"
- "https://www.scala-lang.org/api/2.13.12/scala/runtime/AbstractFunction3.html"
- "https://www.scala-lang.org/api/2.13.12/scala/runtime/AbstractPartialFunction.html"
+ "https://www.scala-lang.org/api/2.13.13/scala/runtime/AbstractFunction1.html"
+ "https://www.scala-lang.org/api/2.13.13/scala/runtime/AbstractFunction2.html"
+ "https://www.scala-lang.org/api/2.13.13/scala/runtime/AbstractFunction3.html"
+ "https://www.scala-lang.org/api/2.13.13/scala/runtime/AbstractPartialFunction.html"
# Bug, see https://github.com/scala/bug/issues/12807 and https://github.com/lampepfl/dotty/issues/17973
"https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/nio/file/StandardOpenOption$.html"
# Occasionally returns a 500 Internal Server Error
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org