@@ -20,7 +20,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2020
2121plugins {
2222 `kotlin- dsl`
23- id(" com.github.ben-manes.versions" ) version " 0.22 .0"
23+ id(" com.github.ben-manes.versions" ) version " 0.25 .0"
2424}
2525
2626buildscript {
@@ -30,7 +30,7 @@ buildscript {
3030 jcenter()
3131 }
3232 dependencies {
33- classpath(" com.fasterxml.jackson.core:jackson-databind:2.9.9.3 " )
33+ classpath(" com.fasterxml.jackson.core:jackson-databind:2.10.0 " )
3434 }
3535}
3636
@@ -43,18 +43,20 @@ repositories {
4343}
4444
4545dependencies {
46- implementation(gradlePlugin(" com.github.ben-manes.versions:0.22 .0" ))
46+ implementation(gradlePlugin(" com.github.ben-manes.versions:0.25 .0" ))
4747 implementation(gradlePlugin(" org.ajoberstar.grgit:3.1.1" ))
4848 implementation(gradlePlugin(" com.github.spotbugs:2.0.0" ))
4949 implementation(gradlePlugin(" biz.aQute.bnd.builder:4.2.0" ))
50- implementation(gradlePlugin(" de.marcphilipp.nexus-publish:0.3.1 " ))
51- implementation(gradlePlugin(" io.codearte.nexus-staging:0.21.0 " ))
50+ implementation(gradlePlugin(" de.marcphilipp.nexus-publish:0.4.0 " ))
51+ implementation(gradlePlugin(" io.codearte.nexus-staging:0.21.1 " ))
5252 implementation(gradlePlugin(" net.researchgate.release:2.8.1" ))
5353 implementation(gradlePlugin(" net.wooga.github:1.4.0" ))
54- implementation(" com.fasterxml.jackson.core:jackson-databind:2.9.9.3" )
55- implementation(" com.github.javaparser:javaparser-core:3.14.11" )
54+ implementation(gradlePlugin(" info.solidsoft.pitest:1.4.5" ))
55+ implementation(" com.fasterxml.jackson.core:jackson-databind:2.10.0" )
56+ implementation(" com.github.javaparser:javaparser-core:3.14.159265359" )
5657 implementation(" org.kohsuke:github-api:1.95" )
57- implementation(" net.sf.saxon:Saxon-HE:9.9.1-4" )
58+ implementation(" net.sf.saxon:Saxon-HE:9.9.1-5" )
59+ implementation(" org.pitest:pitest:1.4.10" )
5860}
5961
6062kotlinDslPluginOptions {
@@ -70,26 +72,22 @@ tasks.withType<KotlinCompile>().configureEach {
7072tasks.dependencyUpdates {
7173 checkForGradleUpdate = false
7274
73- resolutionStrategy {
74- componentSelection {
75- all {
76- if (Regex (""" (?i)[.-](?:${listOf (
77- " alpha" ,
78- " beta" ,
79- " rc" ,
80- " cr" ,
81- " m" ,
82- " preview" ,
83- " test" ,
84- " pr" ,
85- " pre" ,
86- " b" ,
87- " ea"
88- ).joinToString(" |" )} )[.\d-]*""" ).containsMatchIn(candidate.version)) {
89- reject(" preliminary release" )
90- }
91- }
92- }
75+ rejectVersionIf {
76+ val preliminaryReleaseRegex = Regex (""" (?i)[.-](?:${listOf (
77+ " alpha" ,
78+ " beta" ,
79+ " rc" ,
80+ " cr" ,
81+ " m" ,
82+ " preview" ,
83+ " test" ,
84+ " pr" ,
85+ " pre" ,
86+ " b" ,
87+ " ea"
88+ ).joinToString(" |" )} )[.\d-]*""" )
89+ preliminaryReleaseRegex.containsMatchIn(candidate.version)
90+ && ! preliminaryReleaseRegex.containsMatchIn(currentVersion)
9391 }
9492
9593 outputFormatter = closureOf<Result > {
0 commit comments