From d3e39036e883385f1308d378ebe5e1179bfbc932 Mon Sep 17 00:00:00 2001 From: Pamela Dragosh Date: Fri, 4 Oct 2019 16:45:50 -0400 Subject: [PATCH] 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 --- onap-java-formatter.xml | 295 ++++++++++++++++++++++++++++++++++++++++++++++++ pom.xml | 41 +++++++ 2 files changed, 336 insertions(+) create mode 100644 onap-java-formatter.xml 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 + + + + + + + + + -- 2.16.6