Skip to content

Commit

Permalink
Remove unused com.github.ben-manes.versions plugin (#5720)
Browse files Browse the repository at this point in the history
  • Loading branch information
jack-berg authored Aug 16, 2023
1 parent d840732 commit 0e63447
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 25 deletions.
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import java.time.Duration

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

id("otel.spotless-conventions")
Expand Down
23 changes: 0 additions & 23 deletions dependencyManagement/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask

plugins {
`java-platform`

id("com.github.ben-manes.versions")
}

data class DependencySet(val group: String, val version: String, val modules: List<String>)
Expand Down Expand Up @@ -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 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
pluginManagement {
plugins {
id("com.github.ben-manes.versions") version "0.47.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
id("com.gradle.enterprise") version "3.14.1"
id("de.undercouch.download") version "5.4.0"
Expand Down

0 comments on commit 0e63447

Please sign in to comment.