You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ti...@apache.org on 2022/09/28 02:43:08 UTC

[flink] 01/01: [FLINK-29436][build] Upgrade spotless for running on JDK 17

This is an automated email from the ASF dual-hosted git repository.

tison pushed a commit to branch tisonkun-patch-1
in repository https://gitbox.apache.org/repos/asf/flink.git

commit c1eeebc7436975ca0d35d5d19910dadc98d6b475
Author: tison <wa...@gmail.com>
AuthorDate: Wed Sep 28 10:42:59 2022 +0800

    [FLINK-29436][build] Upgrade spotless for running on JDK 17
---
 pom.xml | 26 +-------------------------
 1 file changed, 1 insertion(+), 25 deletions(-)

diff --git a/pom.xml b/pom.xml
index 196bcfa87f7..652c5fb242e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -175,7 +175,7 @@ under the License.
 		<hivemetastore.hadoop.version>2.7.5</hivemetastore.hadoop.version>
 		<japicmp.referenceVersion>1.15.0</japicmp.referenceVersion>
 		<japicmp.outputDir>tools/japicmp-output</japicmp.outputDir>
-		<spotless.version>2.13.0</spotless.version>
+		<spotless.version>2.27.0</spotless.version>
 		<spotless.scalafmt.version>3.4.3</spotless.scalafmt.version>
 		<spotless.delimiter>package</spotless.delimiter>
 		<spotless.license.header>
@@ -1018,30 +1018,6 @@ under the License.
 			</build>
 		</profile>
 
-		<profile>
-			<id>java17</id>
-			<activation>
-				<jdk>[17,)</jdk>
-			</activation>
-
-			<build>
-				<pluginManagement>
-					<plugins>
-						<plugin>
-							<groupId>com.diffplug.spotless</groupId>
-							<artifactId>spotless-maven-plugin</artifactId>
-							<configuration>
-								<!-- Current google format does not run on Java 17.
-									 Don't upgrade it in this profile because it formats code differently.
-									 Re-evaluate once support for Java 8 is dropped. -->
-								<skip>true</skip>
-							</configuration>
-						</plugin>
-					</plugins>
-				</pluginManagement>
-			</build>
-		</profile>
-
 		<profile>
 			<id>java11-target</id>
 			<build>