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 f4e73491f1 cleanup spotless workaround code and doc (#7942)
f4e73491f1 is described below
commit f4e73491f1470fbc889f8dfdb61d96f4636cc621
Author: tison <[email protected]>
AuthorDate: Wed Nov 9 10:37:53 2022 +0800
cleanup spotless workaround code and doc (#7942)
Signed-off-by: tison <[email protected]>
Signed-off-by: tison <[email protected]>
---
example/trigger/pom.xml | 2 +-
example/udf/pom.xml | 3 +--
pom.xml | 6 ++----
3 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/example/trigger/pom.xml b/example/trigger/pom.xml
index c5ab40f95b..aec9ef14b2 100644
--- a/example/trigger/pom.xml
+++ b/example/trigger/pom.xml
@@ -113,7 +113,7 @@
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
- <version>2.4.2</version>
+ <version>${spotless.version}</version>
<configuration>
<java>
<googleJavaFormat>
diff --git a/example/udf/pom.xml b/example/udf/pom.xml
index e77fcfb0b5..07b03d8e11 100644
--- a/example/udf/pom.xml
+++ b/example/udf/pom.xml
@@ -97,7 +97,6 @@
<profile>
<id>spotless</id>
<activation>
- <jdk>[1.8,16)</jdk>
<!-- activeByDefault does not take effect-->
<file>
<exists>.</exists>
@@ -108,7 +107,7 @@
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
- <version>2.4.2</version>
+ <version>${spotless.version}</version>
<configuration>
<java>
<googleJavaFormat>
diff --git a/pom.xml b/pom.xml
index 1e51fa6144..027081edf0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -176,7 +176,7 @@
<client-cpp>false</client-cpp>
<!-- disable enforcer by default-->
<enforcer.skip>true</enforcer.skip>
- <spotless.version>2.22.8</spotless.version>
+ <spotless.version>2.27.1</spotless.version>
<httpclient.version>4.5.13</httpclient.version>
<httpcore.version>4.4.15</httpcore.version>
<!-- for REST service -->
@@ -1124,12 +1124,10 @@
</build>
<profiles>
<!-- spotless is too slow, so we put it into a profile to skip it if
needed -->
- <!-- currently spotless cannot run on jdk16, due to JEP 396: Strongly
Encapsulate JDK Internals by Default-->
<profile>
<id>spotless</id>
<activation>
<!-- activeByDefault does not take effect-->
- <jdk>[1.8,16)</jdk>
<file>
<exists>.</exists>
</file>
@@ -1230,7 +1228,7 @@
<properties>
<maven.compiler.release>8</maven.compiler.release>
<!-- change to 1.15.0 will modify many codes (all are
javadocs), we change it to 1.15.0
- until: 1. spotless + jdk16 is fixed; and 2. iotdb decides to
do not support jdk8-->
+ until: iotdb decides to do not support jdk8-->
<google.java.format.version>1.7</google.java.format.version>
</properties>
<dependencies>