Browse Source
build: versions plugin added for routine checks of dependency updates, excluding unstable dependencies (#51)
master
Kazik Pogoda
1 year ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
26 additions and
0 deletions
-
build.gradle.kts
-
gradle/libs.versions.toml
|
@ -98,6 +98,7 @@ plugins { |
|
|
alias(libs.plugins.shadow) |
|
|
alias(libs.plugins.shadow) |
|
|
alias(libs.plugins.runtime) |
|
|
alias(libs.plugins.runtime) |
|
|
alias(libs.plugins.gitarchive.tomarkdown).apply(false) |
|
|
alias(libs.plugins.gitarchive.tomarkdown).apply(false) |
|
|
|
|
|
alias(libs.plugins.versions) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
repositories { |
|
|
repositories { |
|
@ -218,6 +219,30 @@ tasks.register<org.openrndr.extra.gitarchiver.GitArchiveToMarkdown>("gitArchiveT |
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------------------------ // |
|
|
// ------------------------------------------------------------------------------------------------------------------ // |
|
|
|
|
|
|
|
|
|
|
|
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) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------------------------ // |
|
|
|
|
|
|
|
|
class Openrndr { |
|
|
class Openrndr { |
|
|
val openrndrVersion = libs.versions.openrndr.get() |
|
|
val openrndrVersion = libs.versions.openrndr.get() |
|
|
val orxVersion = libs.versions.orx.get() |
|
|
val orxVersion = libs.versions.orx.get() |
|
|
|
@ -31,3 +31,4 @@ kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" } |
|
|
shadow = { id = "com.github.johnrengelman.shadow", version = "7.1.2" } |
|
|
shadow = { id = "com.github.johnrengelman.shadow", version = "7.1.2" } |
|
|
runtime = { id = "org.beryx.runtime", version = "1.13.0" } |
|
|
runtime = { id = "org.beryx.runtime", version = "1.13.0" } |
|
|
gitarchive-tomarkdown = { id = "org.openrndr.extra.gitarchiver.tomarkdown", version.ref = "orx" } |
|
|
gitarchive-tomarkdown = { id = "org.openrndr.extra.gitarchiver.tomarkdown", version.ref = "orx" } |
|
|
|
|
|
versions = { id = "com.github.ben-manes.versions", version = "0.49.0" } |
|
|