FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Gradle task to check for dependency updates by hamoid · Pull Request #1222 · processing/processing4 · GitHub

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .kts  (1) .toml  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
21 changes: 20 additions & 1 deletion build.gradle.kts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 2 additions & 1 deletion gradle/libs.versions.toml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "
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" }
gradlePublish = { id = "com.gradle.plugin-publish", version = "1.2.1" }
versions = { id = "com.github.ben-manes.versions", version = "0.52.0" }
gradlePublish = { id = "com.gradle.plugin-publish", version = "1.2.1" }

Back | FazBrowse Home | New Git URL