Add Gradle task to check for dependency updates

This commit is contained in:
Abe Pazos
2025-08-30 00:15:17 +02:00
parent 198f593971
commit 452fbcea8e
2 changed files with 23 additions and 2 deletions
+20 -1
View File
@@ -4,8 +4,27 @@ plugins {
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.jetbrainsCompose) apply false
alias(libs.plugins.versions)
}
// Set the build directory to not /build to prevent accidental deletion through the clean action
// Can be deleted after the migration to Gradle is complete
layout.buildDirectory = file(".build")
layout.buildDirectory = file(".build")
// Configure the dependencyUpdates task
tasks {
dependencyUpdates {
gradleReleaseChannel = "current"
val nonStableKeywords = listOf("alpha", "beta", "rc")
fun isNonStable(version: String) = nonStableKeywords.any {
version.lowercase().contains(it)
}
rejectVersionIf {
isNonStable(candidate.version) && !isNonStable(currentVersion)
}
}
}
+3 -1
View File
@@ -3,6 +3,7 @@ kotlin = "2.0.20"
compose-plugin = "1.7.1"
jogl = "2.5.0"
jupiter = "5.12.0"
versions = "0.52.0"
[libraries]
jogl = { module = "org.jogamp.jogl:jogl-all-main", version.ref = "jogl" }
@@ -36,4 +37,5 @@ kotlinMultiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref =
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
download = { id = "de.undercouch.download", version = "5.6.0" }
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.30.0" }
mavenPublish = { id = "com.vanniktech.maven.publish", version = "0.30.0" }
versions = { id = "com.github.ben-manes.versions", version.ref = "versions" }