From 1072867dfac0df993cbd3e44bcc11a5cac7465fd Mon Sep 17 00:00:00 2001 From: "Singal, Kapil (ks220y)" Date: Tue, 22 Sep 2020 12:16:46 -0400 Subject: Enabling Code Formatter Code Formatter was turned off due to java 11 migation Issue-ID: CCSDK-2852 Signed-off-by: Singal, Kapil (ks220y) Change-Id: I3d02ed3cc7a93d7551fe25356512cfe8db1517d8 --- pom.xml | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 84 insertions(+), 5 deletions(-) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index c2aecb3dd..6ffd34a88 100644 --- a/pom.xml +++ b/pom.xml @@ -81,7 +81,6 @@ limitations under the License. - org.apache.maven.plugins maven-antrun-plugin - 1.7 + ${maven-antrun-plugin.version} validate-kotlin @@ -124,6 +122,7 @@ limitations under the License. + ${format.skipValidate} @@ -133,7 +132,6 @@ limitations under the License. - format-kotlin process-sources @@ -141,6 +139,7 @@ limitations under the License. + ${format.skipExecute} @@ -154,10 +153,78 @@ limitations under the License. com.pinterest ktlint - 0.35.0 + 0.39.0 + + + + org.commonjava.maven.plugins + directory-maven-plugin + 0.3 + + + validate + directories + + highest-basedir + + + baseDirPath + + + + + + + + net.revelc.code.formatter + formatter-maven-plugin + 2.12.0 + + + format-java + + format + + process-sources + + LF + ${format.skipExecute} + ${project.basedir} + ${baseDirPath}/ONAP-Java-Code-Style.xml + + src/**/*.java + + + + + validate-java + + validate + + validate + + LF + ${format.skipValidate} + ${project.basedir} + ${baseDirPath}/ONAP-Java-Code-Style.xml + + src/**/*.java + + + + + + + com.fasterxml.jackson.core + jackson-annotations + ${jackson-bom.version} + + + + org.apache.maven.plugins maven-surefire-plugin @@ -217,10 +284,22 @@ limitations under the License. jacoco-maven-plugin ${jacoco.version} + + org.codehaus.mojo + tidy-maven-plugin + org.apache.maven.plugins maven-antrun-plugin + + org.commonjava.maven.plugins + directory-maven-plugin + + + net.revelc.code.formatter + formatter-maven-plugin + org.apache.maven.plugins maven-surefire-plugin -- cgit 1.2.3-korg