Updated dependencies and cleanup.
This commit is contained in:
parent
aa8fadd37c
commit
4a701e1ee0
20 changed files with 321 additions and 117 deletions
62
build.gradle
62
build.gradle
|
@ -8,13 +8,13 @@ plugins {
|
|||
id 'maven-publish'
|
||||
id 'pmd'
|
||||
id 'com.jfrog.bintray' version '1.8.4'
|
||||
id 'com.github.ben-manes.versions' version '0.21.0'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.0'
|
||||
id 'com.github.spotbugs' version '1.7.1'
|
||||
id 'org.sonarqube' version '2.7'
|
||||
id 'com.github.ben-manes.versions' version '0.28.0'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||
id 'com.github.spotbugs' version '4.0.4'
|
||||
id 'org.sonarqube' version '2.8'
|
||||
}
|
||||
|
||||
import com.github.spotbugs.SpotBugsTask
|
||||
import com.github.spotbugs.snom.SpotBugsTask
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
defaultTasks 'deploy'
|
||||
|
@ -36,9 +36,12 @@ def pkgLabels = ['jsp', 'tag library', 'http', 'status code', 'java']
|
|||
group = 'net.thauvin.erik.httpstatus'
|
||||
|
||||
mainClassName = 'net.thauvin.erik.httpstatus.Reasons'
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
||||
|
||||
ext {
|
||||
versions = [
|
||||
spotbugs: '4.0.1'
|
||||
]
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
@ -49,13 +52,22 @@ dependencies {
|
|||
implementation 'javax.servlet:javax.servlet-api:4.0.1'
|
||||
implementation 'javax.servlet.jsp:jsp-api:2.2.1-b03'
|
||||
|
||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.9.0'
|
||||
spotbugsPlugins 'com.mebigfatguy.fb-contrib:fb-contrib:7.4.3.sb'
|
||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.10.1'
|
||||
spotbugsPlugins 'com.mebigfatguy.sb-contrib:sb-contrib:7.4.7'
|
||||
|
||||
compileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.12'
|
||||
testCompileOnly 'com.github.spotbugs:spotbugs-annotations:3.1.12'
|
||||
compileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs"
|
||||
testCompileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs"
|
||||
|
||||
testImplementation 'org.testng:testng:6.14.3'
|
||||
testImplementation 'org.testng:testng:7.2.0'
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
javadoc {
|
||||
|
@ -67,11 +79,6 @@ javadoc {
|
|||
options.addStringOption('Xdoclint:none', '-quiet')
|
||||
}
|
||||
|
||||
compileJava {
|
||||
//options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'
|
||||
}
|
||||
|
||||
|
||||
jar {
|
||||
manifest.attributes('Main-Class': mainClassName)
|
||||
}
|
||||
|
@ -86,17 +93,16 @@ test {
|
|||
useTestNG()
|
||||
}
|
||||
|
||||
pmd {
|
||||
ruleSetFiles = files("config/pmd.xml")
|
||||
ruleSets = []
|
||||
spotbugs {
|
||||
toolVersion = versions.spotbugs
|
||||
excludeFilter = file("$projectDir/config/spotbugs/excludeFilter.xml")
|
||||
}
|
||||
|
||||
tasks.withType(SpotBugsTask) {
|
||||
reports {
|
||||
xml.enabled = false
|
||||
html.enabled = true
|
||||
}
|
||||
excludeFilter = file("$projectDir/config/spotbugs/excludeFilter.xml")
|
||||
pmd {
|
||||
ignoreFailures = true
|
||||
ruleSets = []
|
||||
ruleSetFiles = files("${projectDir}/config/pmd.xml")
|
||||
consoleOutput = true
|
||||
}
|
||||
|
||||
tasks.withType(Checkstyle) {
|
||||
|
@ -209,7 +215,7 @@ task deploy(dependsOn: ['clean', 'build', 'copyToDeploy']) {
|
|||
mustRunAfter clean
|
||||
}
|
||||
|
||||
task release(dependsOn: ['wrapper', 'deploy']) {
|
||||
task release(dependsOn: ['wrapper', 'deploy', 'publishToMavenLocal']) {
|
||||
group = 'Publishing'
|
||||
description = 'Releases new version.'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue