|
54 | 54 | <protobufVersion>3.25.5</protobufVersion> |
55 | 55 | <nettyVersion>4.2.7.Final</nettyVersion> |
56 | 56 | <javaVersion>8</javaVersion> |
| 57 | + <maven.compiler.source>${javaVersion}</maven.compiler.source> |
| 58 | + <maven.compiler.target>${javaVersion}</maven.compiler.target> |
57 | 59 | <scalaVersion>2.12</scalaVersion> |
58 | 60 | <scalaLongVersion>2.12.18</scalaLongVersion> |
| 61 | + <scala-xml.version>2.1.0</scala-xml.version> |
59 | 62 | <scalaJava8CompatVersion>1.0.2</scalaJava8CompatVersion> |
60 | 63 | <maven.version>3.9.12</maven.version> |
61 | 64 | <maven.plugin.scala.version>4.9.2</maven.plugin.scala.version> |
|
383 | 386 | <arg>-feature</arg> |
384 | 387 | <arg>-Ywarn-unused</arg> |
385 | 388 | <arg>-Xfatal-warnings</arg> |
| 389 | + |
| 390 | + <arg>-Wconf:msg=method newInstance in class Class is deprecated:s</arg> |
| 391 | + <arg>-Wconf:msg=class ThreadDeath in package lang is deprecated:s</arg> |
386 | 392 | </args> |
387 | 393 | </configuration> |
388 | 394 | <dependencies> |
|
465 | 471 | <version>${maven.plugin.surefire.version}</version> |
466 | 472 | <!-- Note config is repeated in scalatest config --> |
467 | 473 | <configuration> |
| 474 | + <forkCount>1</forkCount> |
| 475 | + <reuseForks>false</reuseForks> |
468 | 476 | <skipTests>false</skipTests> |
469 | 477 | <failIfNoSpecifiedTests>false</failIfNoSpecifiedTests> |
470 | 478 | <argLine>${extraJavaTestArgs}</argLine> |
|
486 | 494 | <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory> |
487 | 495 | <junitxml>.</junitxml> |
488 | 496 | <filereports>TestSuite.txt</filereports> |
| 497 | + <forkMode>once</forkMode> |
489 | 498 | <argLine>${extraJavaTestArgs}</argLine> |
490 | 499 | <environmentVariables /> |
491 | 500 | <systemProperties> |
|
827 | 836 | </properties> |
828 | 837 | </profile> |
829 | 838 |
|
| 839 | + <profile> |
| 840 | + <id>spark-4.1</id> |
| 841 | + <properties> |
| 842 | + <shimName>spark-4.1</shimName> |
| 843 | + <scalaTestVersion>3.2.9</scalaTestVersion> |
| 844 | + <sparkVersion>4.1.1</sparkVersion> |
| 845 | + <shortSparkVersion>4.1</shortSparkVersion> |
| 846 | + <nettyVersion>4.1.118.Final</nettyVersion> |
| 847 | + </properties> |
| 848 | + <build> |
| 849 | + <plugins> |
| 850 | + <plugin> |
| 851 | + <groupId>org.apache.maven.plugins</groupId> |
| 852 | + <artifactId>maven-enforcer-plugin</artifactId> |
| 853 | + <version>${maven-enforcer-plugin.version}</version> |
| 854 | + <executions> |
| 855 | + <execution> |
| 856 | + <id>spark41-enforce-java-scala-version</id> |
| 857 | + <goals> |
| 858 | + <goal>enforce</goal> |
| 859 | + </goals> |
| 860 | + <configuration> |
| 861 | + <rules> |
| 862 | + <!-- Spark 4.1 requires JDK 17+ and Scala 2.13.x --> |
| 863 | + <requireJavaVersion> |
| 864 | + <version>[17,)</version> |
| 865 | + <message>Spark 4.1 requires JDK 17 or higher. Current: ${java.version}</message> |
| 866 | + </requireJavaVersion> |
| 867 | + <requireProperty> |
| 868 | + <property>scalaLongVersion</property> |
| 869 | + <regex>2\.13\.\d+</regex> |
| 870 | + <regexMessage>Spark 4.1 requires Scala 2.13.x. Current: ${scalaLongVersion}</regexMessage> |
| 871 | + </requireProperty> |
| 872 | + </rules> |
| 873 | + </configuration> |
| 874 | + </execution> |
| 875 | + </executions> |
| 876 | + </plugin> |
| 877 | + </plugins> |
| 878 | + </build> |
| 879 | + </profile> |
| 880 | + |
830 | 881 | <profile> |
831 | 882 | <id>jdk-8</id> |
832 | 883 | <activation> |
|
835 | 886 | <properties> |
836 | 887 | <javaVersion>8</javaVersion> |
837 | 888 | <spotless.plugin.version>2.30.0</spotless.plugin.version> |
838 | | - <semanticdb.version>4.8.8</semanticdb.version> |
| 889 | + <semanticdb.version>4.14.5</semanticdb.version> |
839 | 890 | <scalafmtVersion>3.0.0</scalafmtVersion> |
840 | 891 | </properties> |
841 | 892 | </profile> |
|
848 | 899 | <properties> |
849 | 900 | <javaVersion>11</javaVersion> |
850 | 901 | <spotless.plugin.version>2.30.0</spotless.plugin.version> |
851 | | - <semanticdb.version>4.8.8</semanticdb.version> |
| 902 | + <semanticdb.version>4.14.5</semanticdb.version> |
852 | 903 | <scalafmtVersion>3.0.0</scalafmtVersion> |
853 | 904 | </properties> |
854 | 905 | </profile> |
|
861 | 912 | <properties> |
862 | 913 | <javaVersion>17</javaVersion> |
863 | 914 | <spotless.plugin.version>2.45.0</spotless.plugin.version> |
864 | | - <semanticdb.version>4.9.9</semanticdb.version> |
| 915 | + <semanticdb.version>4.14.5</semanticdb.version> |
865 | 916 | <scalafmtVersion>3.9.9</scalafmtVersion> |
866 | 917 | </properties> |
867 | 918 | </profile> |
|
874 | 925 | <properties> |
875 | 926 | <javaVersion>21</javaVersion> |
876 | 927 | <spotless.plugin.version>2.45.0</spotless.plugin.version> |
877 | | - <semanticdb.version>4.9.9</semanticdb.version> |
| 928 | + <semanticdb.version>4.14.5</semanticdb.version> |
878 | 929 | <scalafmtVersion>3.9.9</scalafmtVersion> |
879 | 930 | </properties> |
880 | 931 | </profile> |
|
921 | 972 | </activation> |
922 | 973 | <properties> |
923 | 974 | <scalaVersion>2.13</scalaVersion> |
924 | | - <scalaLongVersion>2.13.13</scalaLongVersion> |
| 975 | + <scalaLongVersion>2.13.17</scalaLongVersion> |
925 | 976 | </properties> |
926 | 977 | <build> |
927 | 978 | <plugins> |
|
944 | 995 | <arg>-Wconf:msg=^(?=.*?method|value|type|object|trait|inheritance)(?=.*?deprecated)(?=.*?since 2.13).+$:s</arg> |
945 | 996 | <arg>-Wconf:msg=Auto-application to \`\(\)\` is deprecated:s</arg> |
946 | 997 | <arg>-Wconf:msg=object JavaConverters in package collection is deprecated:s</arg> |
| 998 | + <arg>-Wconf:msg=method newInstance in class Class is deprecated:s</arg> |
| 999 | + <arg>-Wconf:msg=class ThreadDeath in package lang is deprecated:s</arg> |
947 | 1000 | <arg>-Wconf:cat=unchecked&msg=outer reference:s</arg> |
948 | 1001 | <arg>-Wconf:cat=unchecked&msg=eliminated by erasure:s</arg> |
949 | 1002 | <arg>-Wconf:cat=unused-nowarn:s</arg> |
950 | 1003 | <arg>-Wconf:msg=early initializers are deprecated:s</arg> |
951 | 1004 | <arg>-Wconf:cat=other-match-analysis:s</arg> |
| 1005 | + <arg>-Wconf:cat=feature-existentials:s</arg> |
952 | 1006 | </args> |
953 | 1007 | <compilerPlugins> |
954 | 1008 | <compilerPlugin> |
|
0 commit comments