Remove unused com.github.ben-manes.versions plugin (#5720)
This commit is contained in:
parent
d8407320df
commit
0e6344798d
|
@ -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")
|
||||||
|
|
|
@ -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)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue