diff --git a/build.gradle b/build.gradle index eebc55c5..10c62ea8 100644 --- a/build.gradle +++ b/build.gradle @@ -1,15 +1,15 @@ plugins { id 'java' - id 'org.springframework.boot' version '2.7.4' + id 'org.springframework.boot' version '2.7.5' id 'io.openapiprocessor.openapi-processor' version '2022.2' - id 'io.spring.dependency-management' version '1.0.14.RELEASE' + id 'io.spring.dependency-management' version '1.1.0' id 'com.github.jk1.dependency-license-report' version '2.1' - id "org.owasp.dependencycheck" version "7.2.1" + id "org.owasp.dependencycheck" version "7.3.0" id "com.diffplug.spotless" version "6.11.0" id 'jacoco' id 'info.solidsoft.pitest' version '1.9.0' id 'se.patrikerdes.use-latest-versions' version '0.2.18' - id 'com.github.ben-manes.versions' version '0.42.0' + id 'com.github.ben-manes.versions' version '0.43.0' } group = 'net.hostsharing' @@ -57,9 +57,9 @@ dependencies { implementation 'org.springframework.boot:spring-boot-starter-web' implementation 'org.springframework.boot:spring-boot-starter-validation' implementation 'com.github.gavlyukovskiy:datasource-proxy-spring-boot-starter:1.8.1' - implementation 'org.springdoc:springdoc-openapi-ui:1.6.11' + implementation 'org.springdoc:springdoc-openapi-ui:1.6.12' implementation 'org.liquibase:liquibase-core' - implementation 'com.vladmihalcea:hibernate-types-55:2.19.2' + implementation 'com.vladmihalcea:hibernate-types-55:2.20.0' implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.4' implementation 'org.openapitools:jackson-databind-nullable:0.2.3' implementation 'org.modelmapper:modelmapper:3.1.0' @@ -292,3 +292,15 @@ project.tasks.pitest.doFirst { // Why not doLast? See README.md! useLatestVersions { finalizedBy check } + +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) +} + +tasks.named("dependencyUpdates").configure { + rejectVersionIf { + isNonStable(it.candidate.version) + } +}