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

haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/master by this push:
     new da8b9c0bf59 Disable spotless for JDK 21 (#11469)
da8b9c0bf59 is described below

commit da8b9c0bf59b99f87f3e337c806b892a83c57ec5
Author: Haonan <[email protected]>
AuthorDate: Fri Nov 3 14:14:00 2023 +0800

    Disable spotless for JDK 21 (#11469)
---
 pom.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/pom.xml b/pom.xml
index 2a11d6d7317..f98e1d596b8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2581,6 +2581,16 @@
                 
<argLine>--add-opens=java.base/java.util.concurrent=ALL-UNNAMED 
--add-opens=java.base/java.lang=ALL-UNNAMED 
--add-opens=java.base/java.util=ALL-UNNAMED 
--add-opens=java.base/java.nio=ALL-UNNAMED 
--add-opens=java.base/java.io=ALL-UNNAMED 
--add-opens=java.base/java.net=ALL-UNNAMED 
--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED 
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED 
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add [...]
             </properties>
         </profile>
+        <!-- Current version of spotless cannot support JDK21 -->
+        <profile>
+            <id>.java-21-and-above</id>
+            <activation>
+                <jdk>[21,)</jdk>
+            </activation>
+            <properties>
+                <spotless.skip>true</spotless.skip>
+            </properties>
+        </profile>
         <!-- Little helper profile that will disable running the cmake tests 
when the maven tests are being skipped -->
         <profile>
             <id>.skipTests</id>

Reply via email to