This is an automated email from the ASF dual-hosted git repository.
snuyanzin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new ae019cab6f7 [FLINK-40704][build] Enable spotless for java 25
ae019cab6f7 is described below
commit ae019cab6f71ce39019729b30102a311af5a3212
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Fri Sep 18 11:06:23 2026 +0200
[FLINK-40704][build] Enable spotless for java 25
---
pom.xml | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)
diff --git a/pom.xml b/pom.xml
index 2c71ad16fc9..fd3b25afb87 100644
--- a/pom.xml
+++ b/pom.xml
@@ -186,6 +186,7 @@ under the License.
<checkstyle.version>10.18.2</checkstyle.version>
<spotless.skip>false</spotless.skip>
<spotless.version>2.46.1</spotless.version>
+ <aosp.version>1.28.0</aosp.version>
<spotless.scalafmt.version>3.4.3</spotless.scalafmt.version>
<spotless.delimiter>package</spotless.delimiter>
<spotless.license.header>
@@ -1087,6 +1088,7 @@ under the License.
<properties>
<target.java.version>11</target.java.version>
+ <aosp.version>1.24.0</aosp.version>
</properties>
<build>
@@ -1213,6 +1215,7 @@ under the License.
<surefire.excludedGroups.jdk>org.apache.flink.testutils.junit.FailsOnJava25,</surefire.excludedGroups.jdk>
<!-- Minimum Hadoop version working with jdk 25
according to https://issues.apache.org/jira/browse/HADOOP-19212 -->
<flink.hadoop.version>3.4.3</flink.hadoop.version>
+ <aosp.version>1.30.0</aosp.version>
</properties>
<build>
@@ -1225,16 +1228,6 @@ under the License.
<excludedGroups>${surefire.excludedGroups.github-actions}${surefire.excludedGroups.adaptive-scheduler}${surefire.excludedGroups.jdk}</excludedGroups>
</configuration>
</plugin>
- <plugin>
-
<groupId>com.diffplug.spotless</groupId>
-
<artifactId>spotless-maven-plugin</artifactId>
- <configuration>
- <!-- Current
google format does not run on Java 25.
- Don't
upgrade it in this profile because it formats code differently.
-
Re-evaluate once support for Java 11 is dropped. -->
-
<skip>true</skip>
- </configuration>
- </plugin>
</plugins>
</pluginManagement>
</build>
@@ -2215,7 +2208,7 @@ under the License.
</upToDateChecking>
<java>
<googleJavaFormat>
-
<version>1.24.0</version>
+
<version>${aosp.version}</version>
<style>AOSP</style>
</googleJavaFormat>