Actions
Developer Request #12038
openобновление плагина PMD в Gradle
Start date:
11/09/2022
Due date:
% Done:
100%
Estimated time:
Published in build:
Description
В настоящее время в Gradle-based системе сборки проекта используется плагин PMD версии 5.9.0. На нынешнем Jenkins он валится с ошибками.
Предлагается либо убрать его вовсе, либо обновить до более работоспособной версии 6.21.0
Для корректного обновления нужно внести следующие изменения в файл build.gradle (ниже приведен вывод git diff для аналогичного коммита в другом проекте):
@@ -164,8 +164,6 @@ dependencies { testCompile fileTree(include: ['*.jar'], dir: "${project.projectDir}/build/target/lib/jars") checkstyle 'com.puppycrawl.tools:checkstyle:6.12.1' - pmd 'net.sourceforge.pmd:pmd-core:5.4.0' - pmd 'net.sourceforge.pmd:pmd-java:5.4.0' } eclipse { @@ -246,14 +244,11 @@ checkstyle { } pmd { + consoleOutput = true ignoreFailures = true - ruleSets = [ "java-android,java-basic,java-braces,java-clone,java-codesize,java-controversial," - + "java-coupling,java-design,java-empty,java-finalizers,java-imports,java-j2ee," - + "java-javabeans,java-junit,java-logging-jakarta-commons,java-logging-java," - + "java-migrating,java-migrating_to_13,java-migrating_to_14,java-migrating_to_15," - + "java-migrating_to_junit4,java-naming,java-optimizations,java-strictexception," - + "java-strings,java-sunsecure,java-typeresolution,java-unnecessary,java-unusedcode"] - ruleSetFiles = files("config/pmd/java/comments.xml") + toolVersion = "6.21.0" + ruleSets = ["category/java/bestpractices.xml", "category/java/design.xml", "category/java/documentation.xml", + "category/java/errorprone.xml", "category/java/performance.xml", "category/java/security.xml"] }
Updated by Alexander Protsenko about 2 years ago
- Status changed from New to Open
- Assignee set to Alexander Protsenko
Updated by Alexander Protsenko about 2 years ago
- Status changed from Open to Resolved
- % Done changed from 0 to 100
Actions