Updated dependencies and copyright.
This commit is contained in:
parent
8c5f4a72fa
commit
e01ea7882f
30 changed files with 933 additions and 686 deletions
22
build.gradle
22
build.gradle
|
@ -4,9 +4,9 @@ plugins {
|
|||
id 'maven-publish'
|
||||
id 'pmd'
|
||||
id 'signing'
|
||||
id 'com.github.ben-manes.versions' version '0.39.0'
|
||||
id 'com.github.ben-manes.versions' version '0.40.0'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||
id 'com.github.spotbugs' version '4.7.1'
|
||||
id 'com.github.spotbugs' version '5.0.3'
|
||||
id 'org.sonarqube' version '3.3'
|
||||
}
|
||||
|
||||
|
@ -25,9 +25,15 @@ final def mavenLicenseUrl = 'http://opensource.org/licenses/BSD-3-Clause'
|
|||
final def mavenScmCon = 'https://github.com/ethauvin/semver.git'
|
||||
final def mavenScmDevCon = 'git@github.com:ethauvin/semver.git'
|
||||
|
||||
def isNonStable = { String version ->
|
||||
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { it -> version.toUpperCase().contains(it) }
|
||||
def regex = /^[0-9,.v-]+(-r)?$/
|
||||
return !stableKeyword && !(version ==~ regex)
|
||||
}
|
||||
|
||||
ext.versions = [
|
||||
pmd: '6.35.0',
|
||||
spotbugs: '4.2.3'
|
||||
pmd: '6.41.0',
|
||||
spotbugs: '4.5.2'
|
||||
]
|
||||
|
||||
repositories {
|
||||
|
@ -59,6 +65,12 @@ java {
|
|||
withJavadocJar()
|
||||
}
|
||||
|
||||
tasks.named("dependencyUpdates").configure {
|
||||
rejectVersionIf {
|
||||
isNonStable(it.candidate.version)
|
||||
}
|
||||
}
|
||||
|
||||
pmd {
|
||||
toolVersion = versions.pmd
|
||||
ignoreFailures = true
|
||||
|
@ -184,7 +196,7 @@ task pandoc(type: Exec) {
|
|||
}
|
||||
|
||||
jacocoTestReport {
|
||||
dependsOn(test)
|
||||
dependsOn test
|
||||
reports {
|
||||
html.required = true
|
||||
xml.required = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue