mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Add Gradle task to check for dependency updates
This commit is contained in:
+20
-1
@@ -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,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" }
|
||||
|
||||
Reference in New Issue
Block a user