Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 202 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,31 @@
<sparkVersion>3.0.3</sparkVersion>
<shortSparkVersion>3.0</shortSparkVersion>
<nettyVersion>4.1.47.Final</nettyVersion>
<scalaVersion>2.12</scalaVersion>
<scalaLongVersion>2.12.18</scalaLongVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<compilerPlugins combine.self="override">
<compilerPlugin>
<groupId>org.scalameta</groupId>
<artifactId>semanticdb-scalac_${scalaLongVersion}</artifactId>
<version>${semanticdb.version}</version>
</compilerPlugin>
<compilerPlugin>
<groupId>org.scalamacros</groupId>
<artifactId>paradise_${scalaLongVersion}</artifactId>
<version>${scalamacros.paradise.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
Comment on lines +790 to +802
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The scala-2.12 profile (lines 1177-1207) will automatically activate when scalaVersion=2.12 due to its activation condition. Since all Spark 3.x profiles now set this property, both the Spark profile and the scala-2.12 profile will be active simultaneously.

While the use of combine.self="override" in the Spark profiles should prevent configuration merging, this creates a potential maintenance issue and could lead to unexpected behavior if the override attribute is removed or if Maven's profile merging behavior changes. Consider either:

  1. Removing the scala-2.12 and scala-2.13 profiles entirely if they are no longer needed
  2. Modifying their activation conditions to prevent conflicts with Spark profiles

Copilot uses AI. Check for mistakes.
</plugin>
</plugins>
</build>
</profile>

<profile>
Expand All @@ -789,7 +813,31 @@
<sparkVersion>3.1.3</sparkVersion>
<shortSparkVersion>3.1</shortSparkVersion>
<nettyVersion>4.1.51.Final</nettyVersion>
<scalaVersion>2.12</scalaVersion>
<scalaLongVersion>2.12.18</scalaLongVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<compilerPlugins combine.self="override">
<compilerPlugin>
<groupId>org.scalameta</groupId>
<artifactId>semanticdb-scalac_${scalaLongVersion}</artifactId>
<version>${semanticdb.version}</version>
</compilerPlugin>
<compilerPlugin>
<groupId>org.scalamacros</groupId>
<artifactId>paradise_${scalaLongVersion}</artifactId>
<version>${scalamacros.paradise.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
Expand All @@ -800,7 +848,31 @@
<sparkVersion>3.2.4</sparkVersion>
<shortSparkVersion>3.2</shortSparkVersion>
<nettyVersion>4.1.68.Final</nettyVersion>
<scalaVersion>2.12</scalaVersion>
<scalaLongVersion>2.12.18</scalaLongVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<compilerPlugins combine.self="override">
<compilerPlugin>
<groupId>org.scalameta</groupId>
<artifactId>semanticdb-scalac_${scalaLongVersion}</artifactId>
<version>${semanticdb.version}</version>
</compilerPlugin>
<compilerPlugin>
<groupId>org.scalamacros</groupId>
<artifactId>paradise_${scalaLongVersion}</artifactId>
<version>${scalamacros.paradise.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
Expand All @@ -811,7 +883,31 @@
<sparkVersion>3.3.4</sparkVersion>
<shortSparkVersion>3.3</shortSparkVersion>
<nettyVersion>4.1.74.Final</nettyVersion>
<scalaVersion>2.12</scalaVersion>
<scalaLongVersion>2.12.18</scalaLongVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<compilerPlugins combine.self="override">
<compilerPlugin>
<groupId>org.scalameta</groupId>
<artifactId>semanticdb-scalac_${scalaLongVersion}</artifactId>
<version>${semanticdb.version}</version>
</compilerPlugin>
<compilerPlugin>
<groupId>org.scalamacros</groupId>
<artifactId>paradise_${scalaLongVersion}</artifactId>
<version>${scalamacros.paradise.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
Expand All @@ -822,7 +918,31 @@
<sparkVersion>3.4.4</sparkVersion>
<shortSparkVersion>3.4</shortSparkVersion>
<nettyVersion>4.1.87.Final</nettyVersion>
<scalaVersion>2.12</scalaVersion>
<scalaLongVersion>2.12.18</scalaLongVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<compilerPlugins combine.self="override">
<compilerPlugin>
<groupId>org.scalameta</groupId>
<artifactId>semanticdb-scalac_${scalaLongVersion}</artifactId>
<version>${semanticdb.version}</version>
</compilerPlugin>
<compilerPlugin>
<groupId>org.scalamacros</groupId>
<artifactId>paradise_${scalaLongVersion}</artifactId>
<version>${scalamacros.paradise.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
Expand All @@ -833,7 +953,31 @@
<sparkVersion>3.5.8</sparkVersion>
<shortSparkVersion>3.5</shortSparkVersion>
<nettyVersion>4.1.96.Final</nettyVersion>
<scalaVersion>2.12</scalaVersion>
<scalaLongVersion>2.12.18</scalaLongVersion>
</properties>
<build>
<plugins>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<compilerPlugins combine.self="override">
<compilerPlugin>
<groupId>org.scalameta</groupId>
<artifactId>semanticdb-scalac_${scalaLongVersion}</artifactId>
<version>${semanticdb.version}</version>
</compilerPlugin>
<compilerPlugin>
<groupId>org.scalamacros</groupId>
<artifactId>paradise_${scalaLongVersion}</artifactId>
<version>${scalamacros.paradise.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
Expand All @@ -844,6 +988,8 @@
<sparkVersion>4.0.2</sparkVersion>
<shortSparkVersion>4.0</shortSparkVersion>
<nettyVersion>4.1.111.Final</nettyVersion>
<scalaVersion>2.13</scalaVersion>
<scalaLongVersion>2.13.17</scalaLongVersion>
</properties>
<build>
<plugins>
Expand Down Expand Up @@ -874,6 +1020,33 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<args combine.self="override">
<arg>-Ymacro-annotations</arg>
<arg>-Wconf:cat=deprecation:wv,any:e</arg>
<arg>-Wconf:cat=other-nullary-override:s</arg>
<arg>-Wconf:msg=^(?=.*?method|value|type|object|trait|inheritance)(?=.*?deprecated)(?=.*?since 2.13).+$:s</arg>
<arg>-Wconf:msg=Auto-application to \`\(\)\` is deprecated:s</arg>
<arg>-Wconf:msg=object JavaConverters in package collection is deprecated:s</arg>
<arg>-Wconf:cat=unchecked&amp;msg=outer reference:s</arg>
<arg>-Wconf:cat=unchecked&amp;msg=eliminated by erasure:s</arg>
<arg>-Wconf:cat=unused-nowarn:s</arg>
<arg>-Wconf:msg=early initializers are deprecated:s</arg>
<arg>-Wconf:cat=other-match-analysis:s</arg>
<arg>-Wconf:cat=feature-existentials:s</arg>
</args>
Comment on lines +1027 to +1040
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The args configuration in the spark-4.0 profile is missing several compiler arguments that are present in the scala-2.13 profile (lines 1227-1250). Specifically missing:

  • -deprecation
  • -feature
  • -Ywarn-unused
  • -Xfatal-warnings
  • -Wconf:msg=method newInstance in class Class is deprecated:s
  • -Wconf:msg=class ThreadDeath in package lang is deprecated:s

These should be included to maintain consistency with the scala-2.13 profile that would have been used previously.

Copilot uses AI. Check for mistakes.
<compilerPlugins combine.self="override">
<compilerPlugin>
<groupId>org.scalameta</groupId>
<artifactId>semanticdb-scalac_${scalaLongVersion}</artifactId>
<version>${semanticdb.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand All @@ -886,6 +1059,8 @@
<sparkVersion>4.1.1</sparkVersion>
<shortSparkVersion>4.1</shortSparkVersion>
<nettyVersion>4.1.118.Final</nettyVersion>
<scalaVersion>2.13</scalaVersion>
<scalaLongVersion>2.13.17</scalaLongVersion>
</properties>
<build>
<plugins>
Expand Down Expand Up @@ -916,6 +1091,33 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
<configuration>
<args combine.self="override">
<arg>-Ymacro-annotations</arg>
<arg>-Wconf:cat=deprecation:wv,any:e</arg>
<arg>-Wconf:cat=other-nullary-override:s</arg>
<arg>-Wconf:msg=^(?=.*?method|value|type|object|trait|inheritance)(?=.*?deprecated)(?=.*?since 2.13).+$:s</arg>
<arg>-Wconf:msg=Auto-application to \`\(\)\` is deprecated:s</arg>
<arg>-Wconf:msg=object JavaConverters in package collection is deprecated:s</arg>
<arg>-Wconf:cat=unchecked&amp;msg=outer reference:s</arg>
<arg>-Wconf:cat=unchecked&amp;msg=eliminated by erasure:s</arg>
<arg>-Wconf:cat=unused-nowarn:s</arg>
<arg>-Wconf:msg=early initializers are deprecated:s</arg>
<arg>-Wconf:cat=other-match-analysis:s</arg>
<arg>-Wconf:cat=feature-existentials:s</arg>
</args>
Comment on lines +1098 to +1111
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The args configuration in the spark-4.1 profile is missing several compiler arguments that are present in the scala-2.13 profile (lines 1227-1250). Specifically missing:

  • -deprecation
  • -feature
  • -Ywarn-unused
  • -Xfatal-warnings
  • -Wconf:msg=method newInstance in class Class is deprecated:s
  • -Wconf:msg=class ThreadDeath in package lang is deprecated:s

These should be included to maintain consistency with the scala-2.13 profile that would have been used previously.

Copilot uses AI. Check for mistakes.
<compilerPlugins combine.self="override">
<compilerPlugin>
<groupId>org.scalameta</groupId>
<artifactId>semanticdb-scalac_${scalaLongVersion}</artifactId>
<version>${semanticdb.version}</version>
</compilerPlugin>
</compilerPlugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down
Loading