بنقرة واحدة
dependency-updates
Update project dependencies to latest stable versions using the gradle-versions-plugin
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Update project dependencies to latest stable versions using the gradle-versions-plugin
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | dependency-updates |
| description | Update project dependencies to latest stable versions using the gradle-versions-plugin |
When asked to update dependencies, follow this process:
Add com.github.ben-manes.versions to build.gradle.kts (root):
plugins {
// ... existing plugins ...
id("com.github.ben-manes.versions") version "0.53.0"
}
Add this block to build.gradle.kts (root) to configure release-candidate filtering and parallel execution:
fun isNonStable(version: String): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
val isStable = stableKeyword || regex.matches(version)
return isStable.not()
}
tasks.named<com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask>("dependencyUpdates") {
rejectVersionIf {
isNonStable(candidate.version) && !isNonStable(currentVersion)
}
}
./gradlew dependencyUpdates -Drevision=release --no-parallel 2>&1
Parse the output. The "later release versions" section lists candidates. Filter:
gradle/libs.versions.tomlEdit gradle/libs.versions.toml [versions] section.
When updating Compose Multiplatform or related AndroidX libraries:
libs.versions.toml to match those versions exactlyExample alignment from Compose v1.11.0-beta02:
compose-multiplatform = "1.11.0-beta02"androidx-lifecycle = "2.11.0-alpha03" (from release table)androidx-nav3 = "1.1.0-rc01" (from release table)androidx-adaptive = "1.3.0-alpha06" (from release table)material3 = "1.11.0-alpha06" (from release table)Check for known breaking changes in major version bumps.
./gradlew compileKotlin
If compilation fails, read error logs and fix:
Delete the lines added in steps 1 and 2 from build.gradle.kts:
id("com.github.ben-manes.versions") version "0.53.0" from the plugins blocktasks.named<DependencyUpdatesTask>("dependencyUpdates") configuration blockSummarize what was updated in a table format:
| Library | Before | After |
|---|---|---|
| ktor | 3.4.0 | 3.4.2 |