Skip to content

Commit 0e63447

Browse files
authored
Remove unused com.github.ben-manes.versions plugin (#5720)
1 parent d840732 commit 0e63447

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

build.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import java.time.Duration
22

33
plugins {
4-
id("com.github.ben-manes.versions")
54
id("io.github.gradle-nexus.publish-plugin")
65

76
id("otel.spotless-conventions")

dependencyManagement/build.gradle.kts

-23
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
2-
31
plugins {
42
`java-platform`
5-
6-
id("com.github.ben-manes.versions")
73
}
84

95
data class DependencySet(val group: String, val version: String, val modules: List<String>)
@@ -100,22 +96,3 @@ dependencies {
10096
}
10197
}
10298
}
103-
104-
fun isNonStable(version: String): Boolean {
105-
val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) }
106-
val regex = "^[0-9,.v-]+(-r)?$".toRegex()
107-
val isGuava = version.endsWith("-jre")
108-
val isStable = stableKeyword || regex.matches(version) || isGuava
109-
return isStable.not()
110-
}
111-
112-
tasks {
113-
named<DependencyUpdatesTask>("dependencyUpdates") {
114-
revision = "release"
115-
checkConstraints = true
116-
117-
rejectVersionIf {
118-
isNonStable(candidate.version)
119-
}
120-
}
121-
}

settings.gradle.kts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
pluginManagement {
22
plugins {
3-
id("com.github.ben-manes.versions") version "0.47.0"
43
id("com.github.johnrengelman.shadow") version "8.1.1"
54
id("com.gradle.enterprise") version "3.14.1"
65
id("de.undercouch.download") version "5.4.0"

0 commit comments

Comments
 (0)