From: Pamela Dragosh Date: Fri, 4 Oct 2019 20:45:50 +0000 (-0400) Subject: Add plugin for formatting X-Git-Tag: 3.1.0~15 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=d3e39036e883385f1308d378ebe5e1179bfbc932;p=policy%2Fparent.git Add plugin for formatting Makes it easy from the command line to clean up whole submodules. Notably for policy/engine. Unfortunately we will have to copy the onap-java-formatter.xml to each project repo. Maven can't seem to find the file. Issue-ID: POLICY-2145 Change-Id: Ic905be8c33fd89e3bd2be072d3670aad7a4fac2b Signed-off-by: Pamela Dragosh --- diff --git a/onap-java-formatter.xml b/onap-java-formatter.xml new file mode 100644 index 00000000..1dd9de63 --- /dev/null +++ b/onap-java-formatter.xml @@ -0,0 +1,295 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index e8a55d40..fd85b3d3 100644 --- a/pom.xml +++ b/pom.xml @@ -37,4 +37,45 @@ integration + + + + + + + net.revelc.code.formatter + formatter-maven-plugin + 2.8.1 + + ${project.parent.basedir}/onap-java-formatter.xml + + + + + com.diffplug.spotless + spotless-maven-plugin + 1.18.0 + + + + com,java,javax,org + + + + + + + + +