Remove unused com.github.ben-manes.versions plugin (#5720)

This commit is contained in:
jack-berg 2023-08-16 16:52:58 -05:00 committed by GitHub
parent d8407320df
commit 0e6344798d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 25 deletions

View File

@ -1,7 +1,6 @@
import java.time.Duration import java.time.Duration
plugins { plugins {
id("com.github.ben-manes.versions")
id("io.github.gradle-nexus.publish-plugin") id("io.github.gradle-nexus.publish-plugin")
id("otel.spotless-conventions") id("otel.spotless-conventions")

View File

@ -1,9 +1,5 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
plugins { plugins {
`java-platform` `java-platform`
id("com.github.ben-manes.versions")
} }
data class DependencySet(val group: String, val version: String, val modules: List<String>) data class DependencySet(val group: String, val version: String, val modules: List<String>)
@ -100,22 +96,3 @@ dependencies {
} }
} }
} }
fun isNonStable(version: String): Boolean {
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
val isGuava = version.endsWith("-jre")
val isStable = stableKeyword || regex.matches(version) || isGuava
return isStable.not()
}
tasks {
named<DependencyUpdatesTask>("dependencyUpdates") {
revision = "release"
checkConstraints = true
rejectVersionIf {
isNonStable(candidate.version)
}
}
}

View File

@ -1,6 +1,5 @@
pluginManagement { pluginManagement {
plugins { plugins {
id("com.github.ben-manes.versions") version "0.47.0"
id("com.github.johnrengelman.shadow") version "8.1.1" id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.gradle.enterprise") version "3.14.1" id("com.gradle.enterprise") version "3.14.1"
id("de.undercouch.download") version "5.4.0" id("de.undercouch.download") version "5.4.0"