From 2691a1734e41cfb5b69404d84d56ddaa558958a4 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Fri, 27 Dec 2024 11:04:28 -0500 Subject: [PATCH] Refactor maven-checkstyle-plugin configuration --- pom.xml | 33 +++++++++++-------- .../checkstyle-suppressions.xml | 1 - src/conf/{ => checkstyle}/checkstyle.xml | 2 +- 3 files changed, 21 insertions(+), 15 deletions(-) rename src/conf/{ => checkstyle}/checkstyle-suppressions.xml (99%) rename src/conf/{ => checkstyle}/checkstyle.xml (98%) diff --git a/pom.xml b/pom.xml index d32f4b2638..501d73911e 100644 --- a/pom.xml +++ b/pom.xml @@ -71,6 +71,11 @@ 0.59 0.68 0.58 + + ${basedir}/src/conf/checkstyle/checkstyle-header.txt + ${basedir}/src/conf/checkstyle/checkstyle.xml + ${basedir}/src/conf/checkstyle/checkstyle-suppressions.xml + LICENSE.txt, NOTICE.txt, **/maven-archiver/pom.properties @@ -94,6 +99,21 @@ clean verify apache-rat:check japicmp:cmp checkstyle:check pmd:check spotbugs:check javadoc:javadoc + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${commons.checkstyle-plugin.version} + + ${checkstyle.config.file} + false + ${checkstyle.suppress.file} + true + + + + org.apache.felix @@ -198,13 +218,6 @@ org.apache.maven.plugins maven-checkstyle-plugin - - ${basedir}/src/conf/checkstyle.xml - - config_loc=${basedir} - false - true - com.github.siom79.japicmp @@ -259,12 +272,6 @@ org.apache.maven.plugins maven-checkstyle-plugin - - ${basedir}/src/conf/checkstyle.xml - - config_loc=${basedir} - false - diff --git a/src/conf/checkstyle-suppressions.xml b/src/conf/checkstyle/checkstyle-suppressions.xml similarity index 99% rename from src/conf/checkstyle-suppressions.xml rename to src/conf/checkstyle/checkstyle-suppressions.xml index 643d511e5d..11b5552c96 100644 --- a/src/conf/checkstyle-suppressions.xml +++ b/src/conf/checkstyle/checkstyle-suppressions.xml @@ -15,7 +15,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> - diff --git a/src/conf/checkstyle.xml b/src/conf/checkstyle/checkstyle.xml similarity index 98% rename from src/conf/checkstyle.xml rename to src/conf/checkstyle/checkstyle.xml index 581c1dee71..4afde2501f 100644 --- a/src/conf/checkstyle.xml +++ b/src/conf/checkstyle/checkstyle.xml @@ -185,7 +185,7 @@ limitations under the License. - +