From da95ddb4e31db3d59db94ca08ae46ba3f75ecc97 Mon Sep 17 00:00:00 2001 From: Andreas Dangel Date: Thu, 23 Nov 2023 12:25:17 +0100 Subject: [PATCH] Use PMD 7.0.0-rc4 for maven-pmd-plugin --- .ci/build.sh | 4 ---- pom.xml | 14 +++++++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.ci/build.sh b/.ci/build.sh index ae7280b1b3..c04d3cc489 100755 --- a/.ci/build.sh +++ b/.ci/build.sh @@ -323,10 +323,6 @@ function pmd_ci_dogfood() { local mpmdVersion=() ./mvnw versions:set -DnewVersion="${PMD_CI_MAVEN_PROJECT_VERSION}-dogfood" -DgenerateBackupPoms=false sed -i 's/[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}.*<\/version>\( *\)/'"${PMD_CI_MAVEN_PROJECT_VERSION}"'<\/version>\1/' pom.xml - if [ "${PMD_CI_MAVEN_PROJECT_VERSION}" = "7.0.0-SNAPSHOT" ]; then - sed -i 's/pmd-dogfood-config\.xml/pmd-dogfood-config7.xml/' pom.xml - mpmdVersion=(-Denforcer.skip=true -Dpmd.plugin.version=3.21.1-pmd-7.0.0-SNAPSHOT) - fi ./mvnw verify --show-version --errors --batch-mode "${PMD_MAVEN_EXTRA_OPTS[@]}" \ "${mpmdVersion[@]}" \ -DskipTests \ diff --git a/pom.xml b/pom.xml index 8ed3a091b2..1f8bdb18a4 100644 --- a/pom.xml +++ b/pom.xml @@ -441,7 +441,6 @@ 1.${java.version} /net/sourceforge/pmd/pmd-dogfood-config.xml - /net/sourceforge/pmd/pmd7-dogfood-config.xml target/generated-sources/javacc @@ -455,25 +454,30 @@ + + net.sourceforge.pmd + pmd-compat6 + 7.0.0-rc4 + net.sourceforge.pmd pmd-core - 6.55.0 + 7.0.0-rc4 net.sourceforge.pmd pmd-java - 6.55.0 + 7.0.0-rc4 net.sourceforge.pmd pmd-jsp - 6.55.0 + 7.0.0-rc4 net.sourceforge.pmd pmd-javascript - 6.55.0 + 7.0.0-rc4