Disabled SpotBugs for now.
Updated dependencies and copyright
This commit is contained in:
parent
2ce19a215f
commit
d7d641f207
38 changed files with 253 additions and 166 deletions
62
build.gradle
62
build.gradle
|
@ -1,18 +1,18 @@
|
|||
// import com.github.spotbugs.snom.SpotBugsTask
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'jacoco'
|
||||
id 'maven-publish'
|
||||
id 'pmd'
|
||||
id 'signing'
|
||||
id 'com.github.ben-manes.versions' version '0.42.0'
|
||||
id 'com.github.ben-manes.versions' version '0.47.0'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||
id 'com.github.spotbugs' version '5.0.3'
|
||||
id 'org.sonarqube' version '3.3'
|
||||
// id 'com.github.spotbugs' version '5.0.14'
|
||||
id 'org.sonarqube' version '4.2.1.3168'
|
||||
}
|
||||
|
||||
import com.github.spotbugs.snom.SpotBugsTask
|
||||
import org.apache.tools.ant.taskdefs.condition.Os
|
||||
|
||||
defaultTasks 'check'
|
||||
|
||||
group = 'net.thauvin.erik'
|
||||
|
@ -32,8 +32,8 @@ def isNonStable = { String version ->
|
|||
}
|
||||
|
||||
ext.versions = [
|
||||
pmd: '6.44.0',
|
||||
spotbugs: '4.5.3'
|
||||
pmd: '6.54.0',
|
||||
// spotbugs: '4.7.3'
|
||||
]
|
||||
|
||||
repositories {
|
||||
|
@ -45,13 +45,13 @@ repositories {
|
|||
dependencies {
|
||||
implementation 'com.github.spullara.mustache.java:compiler:0.9.10'
|
||||
|
||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.11.0'
|
||||
spotbugsPlugins 'com.mebigfatguy.sb-contrib:sb-contrib:7.4.7'
|
||||
// spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.12.0'
|
||||
// spotbugsPlugins 'com.mebigfatguy.sb-contrib:sb-contrib:7.6.0'
|
||||
|
||||
compileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs"
|
||||
testCompileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs"
|
||||
// compileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs"
|
||||
// testCompileOnly "com.github.spotbugs:spotbugs-annotations:$versions.spotbugs"
|
||||
|
||||
testImplementation 'org.testng:testng:7.5'
|
||||
testImplementation 'org.testng:testng:7.8.0'
|
||||
}
|
||||
|
||||
|
||||
|
@ -60,8 +60,8 @@ tasks.withType(JavaCompile) {
|
|||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
withSourcesJar()
|
||||
withJavadocJar()
|
||||
}
|
||||
|
@ -136,11 +136,11 @@ javadoc {
|
|||
title = "$mavenDescription $project.version API"
|
||||
}
|
||||
options.with {
|
||||
source = '8'
|
||||
source = '17'
|
||||
tags = ['created']
|
||||
author = true
|
||||
//addBooleanOption('html4', true)
|
||||
links('https://docs.oracle.com/javase/8/docs/api/')
|
||||
links('https://docs.oracle.com/en/java/javase/17/docs/api/')
|
||||
//addStringOption('Xdoclint:none', '-quiet')
|
||||
}
|
||||
}
|
||||
|
@ -154,19 +154,19 @@ test {
|
|||
useTestNG()
|
||||
}
|
||||
|
||||
spotbugs {
|
||||
toolVersion.set("${versions.spotbugs}")
|
||||
excludeFilter.set(file("$projectDir/config/spotbugs/excludeFilter.xml"))
|
||||
}
|
||||
// spotbugs {
|
||||
// toolVersion.set("${versions.spotbugs}")
|
||||
// excludeFilter.set(file("$projectDir/config/spotbugs/excludeFilter.xml"))
|
||||
// }
|
||||
|
||||
tasks.withType(SpotBugsTask) {
|
||||
reports {
|
||||
xml.required = false
|
||||
html.required = true
|
||||
}
|
||||
}
|
||||
// tasks.withType(SpotBugsTask).configureEach {
|
||||
// reports {
|
||||
// xml.required = false
|
||||
// html.required = true
|
||||
// }
|
||||
// }
|
||||
|
||||
task release {
|
||||
tasks.register('release') {
|
||||
group = 'Publishing'
|
||||
description = 'Releases new version to local maven repository.'
|
||||
dependsOn(wrapper, clean, publishToMavenLocal)
|
||||
|
@ -175,7 +175,7 @@ task release {
|
|||
}
|
||||
}
|
||||
|
||||
task pandoc(type: Exec) {
|
||||
tasks.register('pandoc', Exec) {
|
||||
group = 'Documentation'
|
||||
def pandoc_args = ['--from', 'gfm',
|
||||
'--to', 'html5',
|
||||
|
@ -197,7 +197,7 @@ task pandoc(type: Exec) {
|
|||
}
|
||||
|
||||
jacoco {
|
||||
toolVersion = '0.8.9-SNAPSHOT'
|
||||
//toolVersion = '0.8.9'
|
||||
}
|
||||
|
||||
jacocoTestReport {
|
||||
|
@ -217,6 +217,6 @@ sonarqube {
|
|||
}
|
||||
}
|
||||
|
||||
tasks.sonarqube {
|
||||
tasks.sonar {
|
||||
dependsOn 'jacocoTestReport'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue