Updated dependencies and copyright.
This commit is contained in:
parent
6d48ec6203
commit
f8101bb2e9
32 changed files with 233 additions and 149 deletions
47
build.gradle
47
build.gradle
|
@ -5,13 +5,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 'com.github.ben-manes.versions' version '0.28.0'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||
id 'com.github.spotbugs' version '2.0.0'
|
||||
id 'org.sonarqube' version '2.7.1'
|
||||
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 'check'
|
||||
|
@ -30,8 +30,11 @@ final def pkgLicenses = ['BSD 3-Clause']
|
|||
final def pkgIssueTrackerUrl = mavenUrl + '/issues'
|
||||
final def pkgLabels = ['java', 'kotlin', 'annotation', 'processor', 'semantic', 'version']
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
targetCompatibility = 1.8
|
||||
ext {
|
||||
versions = [
|
||||
spotbugs: '4.0.0'
|
||||
]
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
@ -42,23 +45,30 @@ repositories {
|
|||
dependencies {
|
||||
implementation 'com.github.spullara.mustache.java:compiler:0.9.6'
|
||||
|
||||
spotbugsPlugins 'com.h3xstream.findsecbugs:findsecbugs-plugin:1.9.0'
|
||||
spotbugsPlugins 'com.mebigfatguy.sb-contrib:sb-contrib:7.4.6'
|
||||
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:4.0.0-beta3'
|
||||
testCompileOnly 'com.github.spotbugs:spotbugs-annotations:4.0.0-beta3'
|
||||
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
|
||||
}
|
||||
|
||||
pmd {
|
||||
ruleSetFiles = files("config/pmd.xml")
|
||||
ignoreFailures = true
|
||||
ruleSets = []
|
||||
ruleSetFiles = files("${projectDir}/config/pmd.xml")
|
||||
consoleOutput = true
|
||||
}
|
||||
|
||||
bintray {
|
||||
|
@ -93,14 +103,14 @@ bintrayUpload {
|
|||
task javadocJar(type: Jar, dependsOn: javadoc) {
|
||||
group = 'Build'
|
||||
description = 'Builds an archive of the javadoc docs.'
|
||||
archiveClassifier = 'javadoc'
|
||||
archiveClassifier.set('javadoc')
|
||||
from javadoc.destinationDir
|
||||
}
|
||||
|
||||
task sourceJar(type: Jar) {
|
||||
group = 'Build'
|
||||
description = 'Builds an archive of the source code.'
|
||||
archiveClassifier = 'sources'
|
||||
archiveClassifier.set('sources')
|
||||
from sourceSets.main.allSource
|
||||
}
|
||||
|
||||
|
@ -155,7 +165,7 @@ javadoc {
|
|||
author = true
|
||||
//addBooleanOption('html4', true)
|
||||
links('https://docs.oracle.com/javase/8/docs/api/')
|
||||
addStringOption('Xdoclint:none', '-quiet')
|
||||
//addStringOption('Xdoclint:none', '-quiet')
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -163,12 +173,15 @@ test {
|
|||
useTestNG()
|
||||
}
|
||||
|
||||
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")
|
||||
}
|
||||
|
||||
tasks.withType(Checkstyle) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue