update to gradle 7.3.2, update to checkstyle 9.2.1, update to pmd 6.41.0

This commit is contained in:
Jörg Prante 2022-01-03 11:14:08 +01:00
parent 969f86baae
commit 3690597d02
6 changed files with 28 additions and 38 deletions

View file

@ -1,8 +1,8 @@
plugins {
id "de.marcphilipp.nexus-publish" version "0.4.0"
id "io.codearte.nexus-staging" version "0.21.1"
id "org.xbib.gradle.plugin.asciidoctor" version "1.5.6.0.1"
id "com.github.spotbugs" version "4.2.4"
id "org.xbib.gradle.plugin.asciidoctor" version "2.5.2.0"
id "com.github.spotbugs" version "5.0.3"
id "pmd"
id "checkstyle"
}

View file

@ -2,7 +2,8 @@ group = org.xbib
name = content
version = 4.0.0
gradle.wrapper.version = 6.6.1
org.gradle.warning.mode = ALL
gradle.wrapper.version = 7.3.2
xbib.net.version = 2.1.1
xbib-datastructures.version = 1.0.0
jackson.version = 2.12.3

View file

@ -38,22 +38,6 @@ page at http://checkstyle.sourceforge.net/config.html -->
Only allows a package-info.java, not package.html. -->
</module>
<module name="LineLength">
<!-- Checks if a line is too long. -->
<property name="max" value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.max}" default="128"/>
<property name="severity" value="error"/>
<!--
The default ignore pattern exempts the following elements:
- import statements
- long URLs inside comments
-->
<property name="ignorePattern"
value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.ignorePattern}"
default="^(package .*;\s*)|(import .*;\s*)|( *(\*|//).*https?://.*)$"/>
</module>
<!-- All Java AST specific tests live under TreeWalker module. -->
<module name="TreeWalker">
@ -87,7 +71,7 @@ page at http://checkstyle.sourceforge.net/config.html -->
<!-- Checks for Javadoc comments. -->
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
<module name="JavadocMethod">
<property name="scope" value="protected"/>
<property name="accessModifiers" value="protected"/>
<property name="severity" value="warning"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingReturnTag" value="true"/>
@ -316,5 +300,21 @@ page at http://checkstyle.sourceforge.net/config.html -->
</module>
</module>
<module name="LineLength">
<!-- Checks if a line is too long. -->
<property name="max" value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.max}" default="128"/>
<property name="severity" value="error"/>
<!--
The default ignore pattern exempts the following elements:
- import statements
- long URLs inside comments
-->
<property name="ignorePattern"
value="${com.puppycrawl.tools.checkstyle.checks.sizes.LineLength.ignorePattern}"
default="^(package .*;\s*)|(import .*;\s*)|( *(\*|//).*https?://.*)$"/>
</module>
</module>

View file

@ -1,27 +1,17 @@
apply plugin: 'checkstyle'
checkstyle {
toolVersion '8.33'
toolVersion '9.2.1'
showViolations = true
ignoreFailures = true
configFile rootProject.file("gradle/config/checkstyle/checkstyle.xml")
}
checkstyleMain {
exclude "**/module-info.java"
logging.setLevel(LogLevel.LIFECYCLE)
source ='src/main/java'
}
checkstyleTest {
exclude "**/module-info.java"
logging.setLevel(LogLevel.LIFECYCLE)
source ='src/test/java'
}
tasks.withType(Checkstyle) {
exclude "**/module-info.java"
logging.setLevel(LogLevel.LIFECYCLE)
reports {
xml.enabled false
html.enabled true
xml.required = false
html.required = true
}
}

View file

@ -3,7 +3,6 @@ apply plugin: 'pmd'
pmd {
ignoreFailures = true
consoleOutput = false
toolVersion = "6.24.0"
rulePriority = 5
toolVersion = "6.41.0"
ruleSetFiles = rootProject.files('gradle/config/pmd/category/java/bestpractices.xml')
}

View file

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists