@@ -15,7 +15,7 @@ fun BintrayExtension.pkg(configure: BintrayExtension.PackageConfig.() -> Unit) {
1515plugins {
1616 `maven- publish`
1717 kotlin(" jvm" ) version (" 1.3.50" )
18- id(" com.github.ben-manes.versions" ) version (" 0.22 .0" )
18+ id(" com.github.ben-manes.versions" ) version (" 0.25 .0" )
1919 id(" com.jfrog.bintray" ) version (" 1.8.4" )
2020 id(" org.jetbrains.dokka" ) version (" 0.9.18" )
2121 id(" net.researchgate.release" ) version (" 2.8.1" )
@@ -30,25 +30,17 @@ repositories {
3030dependencies {
3131 implementation(kotlin(" stdlib" ))
3232 implementation(" com.michael-bull.kotlin-result:kotlin-result:1.1.3" )
33- implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0 " )
34- testImplementation(enforcedPlatform(" org.junit:junit-bom:5.5.1 " ))
33+ implementation(" org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.1 " )
34+ testImplementation(enforcedPlatform(" org.junit:junit-bom:5.5.2 " ))
3535 testImplementation(" org.junit.jupiter:junit-jupiter" )
36- testImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.0 " )
36+ testImplementation(" org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.1 " )
3737 testImplementation(" io.mockk:mockk:1.9.3" )
3838}
3939
40- tasks.named<DependencyUpdatesTask >(" dependencyUpdates" ) {
41- resolutionStrategy {
42- componentSelection {
43- all {
44- val rejected = listOf (" alpha" , " beta" , " rc" , " cr" , " m" , " eap" ).any {
45- candidate.version.contains(it, ignoreCase = true )
46- }
47-
48- if (rejected) {
49- reject(" Release candidate" )
50- }
51- }
40+ tasks.withType<DependencyUpdatesTask > {
41+ rejectVersionIf {
42+ listOf (" alpha" , " beta" , " rc" , " cr" , " m" , " eap" , " pr" ).any {
43+ candidate.version.contains(it, ignoreCase = true )
5244 }
5345 }
5446}
0 commit comments