From 6a2d8c71aa39a6f47a683c38267c07cd9a00dfeb Mon Sep 17 00:00:00 2001 From: "John J. Franey" Date: Thu, 19 Sep 2019 12:27:10 -0400 Subject: [PATCH] update version of checkstyle for latest google style and jdk 8 Upgrade to use the latest google style (plus onap style). This latest style adds rules for jdk 8 source level. Upgrade the version of checkstyle to 8.24. The latest google style rules are compatible with 8.24 and later. Upgrade checkstyle maven plugin to 3.1.0 (from 2.17). This jdk8 version of checkstyle is active only when the build-time java runtime is jdk8 or later, otherwise, the original checkstyle is active. Issue-ID: INT-1271 Change-Id: Ib190b39efc5a6028ab4874301e6a813f0a36b138 Signed-off-by: John J. Franey --- .../onap-checkstyle/onap-java-style1.8.xml | 268 +++++++++++++++++++++ oparent/pom.xml | 54 +++++ 2 files changed, 322 insertions(+) create mode 100644 checkstyle/src/main/resources/onap-checkstyle/onap-java-style1.8.xml diff --git a/checkstyle/src/main/resources/onap-checkstyle/onap-java-style1.8.xml b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style1.8.xml new file mode 100644 index 0000000..514e75f --- /dev/null +++ b/checkstyle/src/main/resources/onap-checkstyle/onap-java-style1.8.xml @@ -0,0 +1,268 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/oparent/pom.xml b/oparent/pom.xml index ec1c865..6fc37e3 100644 --- a/oparent/pom.xml +++ b/oparent/pom.xml @@ -273,6 +273,60 @@ + + + [1.8,) + + + checkstyle-jdk8 + + + + + maven-checkstyle-plugin + 3.1.0 + + + + com.puppycrawl.tools + checkstyle + 8.24 + + + + + onap-license + + + + + ${project.build.sourceDirectory} + + + + + onap-java-style + + + onap-checkstyle/onap-java-style${maven.compiler.source}.xml + + + + ${project.build.sourceDirectory} + + + + + + + + -- 2.16.6