Add Spotless for Code Formatting (#2613)
* style: format from cli * ci: add style check
This commit is contained in:
committed by
GitHub
parent
21974fce0e
commit
a6d94919e9
20
pom.xml
20
pom.xml
@@ -130,6 +130,7 @@
|
||||
<!-- Dash tool integration - END -->
|
||||
|
||||
<skipPublishing>false</skipPublishing>
|
||||
<ratchetFrom>origin/master</ratchetFrom>
|
||||
</properties>
|
||||
|
||||
<developers>
|
||||
@@ -368,6 +369,25 @@
|
||||
<groupId>org.jacoco</groupId>
|
||||
<artifactId>jacoco-maven-plugin</artifactId>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<!--
|
||||
https://github.com/diffplug/spotless/tree/main/plugin-maven#-spotless-keep-your-code-spotless-with-maven
|
||||
|
||||
Usage:
|
||||
mvn spotless:apply
|
||||
mvn spotless:check
|
||||
-->
|
||||
<groupId>com.diffplug.spotless</groupId>
|
||||
<artifactId>spotless-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<ratchetFrom>${ratchetFrom}</ratchetFrom>
|
||||
<java>
|
||||
<eclipse>
|
||||
<file>${maven.multiModuleProjectDirectory}/eclipse_codeformatter.xml</file>
|
||||
</eclipse>
|
||||
</java>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
||||
<pluginManagement>
|
||||
|
||||
Reference in New Issue
Block a user