Updated PMD rules.
This commit is contained in:
parent
c3adfb1f07
commit
b967f13230
4 changed files with 90 additions and 245 deletions
35
build.gradle
35
build.gradle
|
@ -34,6 +34,7 @@ mainClassName = 'net.thauvin.erik.httpstatus.Reasons'
|
|||
|
||||
ext {
|
||||
versions = [
|
||||
pmd: '6.35.0',
|
||||
spotbugs: '4.2.3'
|
||||
]
|
||||
}
|
||||
|
@ -92,8 +93,8 @@ clean {
|
|||
|
||||
test {
|
||||
testLogging {
|
||||
exceptionFormat "full"
|
||||
events "passed", "skipped", "failed"
|
||||
exceptionFormat = "full"
|
||||
events("passed", "skipped", "failed")
|
||||
}
|
||||
|
||||
useTestNG()
|
||||
|
@ -105,6 +106,7 @@ spotbugs {
|
|||
}
|
||||
|
||||
pmd {
|
||||
toolVersion = versions.pmd
|
||||
ignoreFailures = true
|
||||
ruleSets = []
|
||||
ruleSetFiles = files("${projectDir}/config/pmd.xml")
|
||||
|
@ -121,9 +123,9 @@ tasks.withType(Checkstyle) {
|
|||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
from components.java
|
||||
groupId project.group
|
||||
artifactId rootProject.name
|
||||
from(components.java)
|
||||
groupId = project.group
|
||||
artifactId = rootProject.name
|
||||
|
||||
pom {
|
||||
name = mavenName
|
||||
|
@ -171,19 +173,18 @@ signing {
|
|||
|
||||
task copyToDeploy(type: Copy) {
|
||||
from(configurations.runtimeClasspath) {
|
||||
exclude 'javax.servlet-api-*.jar'
|
||||
exclude 'jsp-api-*.jar'
|
||||
exclude('javax.servlet-api-*.jar', 'jsp-api-*.jar')
|
||||
}
|
||||
from jar
|
||||
into deployDir
|
||||
from(jar)
|
||||
into(deployDir)
|
||||
}
|
||||
|
||||
task deploy(dependsOn: ['clean', 'build', 'copyToDeploy']) {
|
||||
description = "Copies all needed files to the ${deployDir} directory."
|
||||
group = 'Publishing'
|
||||
outputs.dir deployDir
|
||||
inputs.files copyToDeploy
|
||||
mustRunAfter clean
|
||||
outputs.dir(deployDir)
|
||||
inputs.files(copyToDeploy)
|
||||
mustRunAfter(clean)
|
||||
}
|
||||
|
||||
task release(dependsOn: ['wrapper', 'deploy', 'pandoc', 'publishToMavenLocal']) {
|
||||
|
@ -203,8 +204,8 @@ task pandoc(type: Exec) {
|
|||
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||
commandLine(['cmd', '/c', 'pandoc'] + pandoc_args)
|
||||
} else {
|
||||
executable 'pandoc'
|
||||
args pandoc_args
|
||||
executable = 'pandoc'
|
||||
args(pandoc_args)
|
||||
}
|
||||
standardOutput = new ByteArrayOutputStream()
|
||||
ext.output = {
|
||||
|
@ -220,9 +221,9 @@ jacocoTestReport {
|
|||
|
||||
sonarqube {
|
||||
properties {
|
||||
property "sonar.organization", "ethauvin-github"
|
||||
property "sonar.projectKey", "ethauvin_HttpStatus"
|
||||
property "sonar.host.url", "https://sonarcloud.io"
|
||||
property("sonar.organization", "ethauvin-github")
|
||||
property("sonar.projectKey", "ethauvin_HttpStatus")
|
||||
property("sonar.host.url", "https://sonarcloud.io")
|
||||
property("sonar.sourceEncoding", "UTF-8")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue