summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorPatrikBuhr <patrik.buhr@est.tech>2019-05-29 08:31:52 +0000
committerPatrikBuhr <patrik.buhr@est.tech>2019-05-29 08:31:52 +0000
commit30eab2b502324dc4c18a2e30913f1e947aeb47ea (patch)
tree4bc999be0f30fc757afc3261772f45842238b77e /pom.xml
parent2187fc6e6b4b4783389289fb87bd6a3676ad2c72 (diff)
Code formatting with maven
mvn formatter:format spotless:apply process-sources The follwowing settings are updated from the onap origin: <setting id="org.eclipse.jdt.core.formatter.comment.line_length" value="120"/> <setting id="org.eclipse.jdt.core.formatter.lineSplit" value="120"/> Change-Id: If9c368edc36399e8662aea20c4fbff53756d367a Issue-ID: DCAEGEN2-1538 Signed-off-by: PatrikBuhr <patrik.buhr@est.tech>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml26
1 files changed, 26 insertions, 0 deletions
diff --git a/pom.xml b/pom.xml
index 58feda8c..bdf7111e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -301,6 +301,32 @@
<artifactId>git-commit-id-plugin</artifactId>
<version>${git-commit-id-plugin.version}</version>
</plugin>
+ <plugin>
+ <groupId>net.revelc.code.formatter</groupId>
+ <artifactId>formatter-maven-plugin</artifactId>
+ <version>2.8.1</version>
+ <configuration>
+ <configFile>${project.parent.basedir}/onap-java-formatter.xml</configFile>
+ </configuration>
+ <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
+ to rewrite source files use mvn formatter:validate to validate source files -->
+ </plugin>
+ <plugin>
+ <groupId>com.diffplug.spotless</groupId>
+ <artifactId>spotless-maven-plugin</artifactId>
+ <version>1.18.0</version>
+ <configuration>
+ <java>
+ <removeUnusedImports/>
+ <importOrder>
+ <order>com,java,javax,org</order>
+ </importOrder>
+ </java>
+ </configuration>
+ <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
+ mvn spotless:apply to rewrite source files use mvn spotless:check to validate
+ source files -->
+ </plugin>
</plugins>
</pluginManagement>
</build>