Skip to content

Commit

Permalink
Remove unused plugin (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Aug 16, 2023
1 parent ace301e commit 67ea058
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
Expand Up @@ -5,7 +5,6 @@ plugins {

id("idea")

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

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 @@ -85,22 +81,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("io.github.gradle-nexus.publish-plugin") version "1.3.0"
Expand Down

0 comments on commit 67ea058

Please sign in to comment.