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

martijnvisser pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/flink-connector-kudu.git

commit c7dfb67801ced03fe028e5f738fc2ced670440b4
Author: Ferenc Csaky <ferenc.cs...@pm.me>
AuthorDate: Mon Apr 8 13:40:05 2024 +0200

    [FLINK-34930] Skip spotless for JDK 21+
---
 pom.xml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/pom.xml b/pom.xml
index 6d8617a..69e2d74 100644
--- a/pom.xml
+++ b/pom.xml
@@ -321,4 +321,29 @@ under the License.
                        </plugin>
                </plugins>
        </build>
+
+       <profiles>
+               <profile>
+                       <id>java21</id>
+                       <activation>
+                               <jdk>[21,)</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 21.
+                                                                        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>
+       </profiles>
 </project>

Reply via email to