Skip to content

Commit 4c190b3

Browse files
Configure dependencyUpdates task in build.gradle.kts
Add configuration for dependencyUpdates task to manage non-stable versions.
1 parent c080196 commit 4c190b3

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build.gradle.kts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,20 @@ plugins {
1212
// Can be deleted after the migration to Gradle is complete
1313

1414
layout.buildDirectory = file(".build")
15+
16+
// Configure the dependencyUpdates task
17+
tasks {
18+
dependencyUpdates {
19+
gradleReleaseChannel = "current"
20+
21+
val nonStableKeywords = listOf("alpha", "beta", "rc")
22+
23+
fun isNonStable(version: String) = nonStableKeywords.any {
24+
version.lowercase().contains(it)
25+
}
26+
27+
rejectVersionIf {
28+
isNonStable(candidate.version) && !isNonStable(currentVersion)
29+
}
30+
}
31+
}

0 commit comments

Comments
 (0)