Remove unused plugin (#1004)

This commit is contained in:
Trask Stalnaker 2023-08-16 13:05:14 -07:00 committed by GitHub
parent ace301ed98
commit 67ea05899b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 25 deletions

View File

@ -5,7 +5,6 @@ plugins {
id("idea")
id("com.github.ben-manes.versions")
id("io.github.gradle-nexus.publish-plugin")
}

View File

@ -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>)
@ -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)
}
}
}

View File

@ -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"