This is an automated email from the ASF dual-hosted git repository. jincheng pushed a commit to branch spotless in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 5ef3baaf1915095b74773b110a8f9e4e3c82429b Author: sunjincheng121 <sunjincheng...@gmail.com> AuthorDate: Mon Feb 15 09:53:43 2021 +0800 Add Spotless plugin with Google Code Style --- pom.xml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/pom.xml b/pom.xml index d3c3aa5..aa4809e 100644 --- a/pom.xml +++ b/pom.xml @@ -151,6 +151,7 @@ <client-cpp>false</client-cpp> <!-- disable enforcer by default--> <enforcer.skip>true</enforcer.skip> + <spotless.version>2.4.2</spotless.version> </properties> <!-- if we claim dependencies in dependencyManagement, then we do not claim @@ -598,6 +599,29 @@ </excludes> </configuration> </plugin> + <plugin> + <groupId>com.diffplug.spotless</groupId> + <artifactId>spotless-maven-plugin</artifactId> + <version>${spotless.version}</version> + <configuration> + <java> + <googleJavaFormat> + <version>1.7</version> + <style>GOOGLE</style> + </googleJavaFormat> + <removeUnusedImports /> + </java> + </configuration> + <executions> + <execution> + <id>spotless-check</id> + <phase>validate</phase> + <goals> + <goal>check</goal> + </goals> + </execution> + </executions> + </plugin> </plugins> </pluginManagement> <plugins> @@ -886,6 +910,10 @@ </execution> </executions> </plugin> + <plugin> + <groupId>com.diffplug.spotless</groupId> + <artifactId>spotless-maven-plugin</artifactId> + </plugin> </plugins> </build> <profiles>