From 423fd93c0b15fa80c43cb65c4e5c77a67799aa17 Mon Sep 17 00:00:00 2001 From: Matthieu Baechler Date: Mon, 29 Apr 2024 17:55:59 +0200 Subject: [PATCH] Fixes #24986: Enable scala 3 cross compilation --- webapp/sources/pom.xml | 31 +--- .../rudder/facts/nodes/NodeFact.scala | 32 ++-- .../marshalling/XmlUnserialisationImpl.scala | 47 +++--- .../jdbc/ReportingServiceTest.scala | 2 - .../rudder/rest/RudderJsonResponse.scala | 10 +- .../rudder/rest/lift/GroupsApi.scala | 4 - .../web/services/Section2FieldService.scala | 1 - .../rudder/rest/RestDataExtractorTest.scala | 137 +++++++++--------- .../rudder/web/services/DisplayNode.scala | 8 +- .../normation/rudder/web/snippet/Login.scala | 28 ++-- .../administration/DatabaseManagement.scala | 2 +- .../rudder/web/snippet/HomePageTest.scala | 72 ++++----- 12 files changed, 168 insertions(+), 206 deletions(-) diff --git a/webapp/sources/pom.xml b/webapp/sources/pom.xml index 319bd3ae25f..2bd4106a778 100644 --- a/webapp/sources/pom.xml +++ b/webapp/sources/pom.xml @@ -107,23 +107,6 @@ limitations under the License. - - io.github.evis - scalafix-maven-plugin_2.13 - 0.1.8_0.11.0 - - - org.scala-lang - scala-rewrites_2.13 - 0.1.5 - - - ch.epfl.scala - scala3-migrate-rules_2.13 - 0.6.2 - - - - -Xsource:3 + -Xsource:3-cross -deprecation -explaintypes -feature @@ -213,9 +189,6 @@ limitations under the License. -Wconf:cat=unused-nowarn&src=com/normation/utils/Version.scala:s,cat=unused-nowarn&src=com/normation/rudder/services/policies/InterpolatedValueCompiler.scala:s - - - -Wconf:msg=constructor modifiers are assumed by synthetic:s -Xmx${jvmArg-Xmx} @@ -422,7 +395,7 @@ limitations under the License. 8.2 8.2.0~alpha1-SNAPSHOT - 2.13.12 + 2.13.14 2.13