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

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

commit dd028fe297001f1550ef24233a06b88796e765fa
Author: HTHou <[email protected]>
AuthorDate: Fri Nov 3 12:33:07 2023 +0800

    Set spotless.skip=true when using jdk21
---
 pom.xml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/pom.xml b/pom.xml
index 2a11d6d7317..dcc7e560b05 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