|
1 | | -import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask |
2 | | - |
3 | 1 | plugins { |
4 | 2 | `java-platform` |
5 | | - |
6 | | - id("com.github.ben-manes.versions") |
7 | 3 | } |
8 | 4 |
|
9 | 5 | data class DependencySet(val group: String, val version: String, val modules: List<String>) |
@@ -64,14 +60,12 @@ val CORE_DEPENDENCIES = listOf( |
64 | 60 | val DEPENDENCIES = listOf( |
65 | 61 | "ch.qos.logback:logback-classic:1.3.15", // logback 1.4+ requires Java 11+ |
66 | 62 | "ch.qos.logback.contrib:logback-json-classic:0.1.5", |
67 | | - "com.uber.nullaway:nullaway:0.12.7", |
68 | 63 | "commons-codec:commons-codec:1.18.0", |
69 | 64 | "org.apache.commons:commons-text:1.13.1", |
70 | 65 | "com.google.code.gson:gson:2.13.1", |
71 | 66 | "com.azure:azure-core-test:1.26.2", // this is not included in azure-sdk-bom |
72 | 67 | "org.assertj:assertj-core:3.27.3", |
73 | 68 | "org.awaitility:awaitility:4.3.0", |
74 | | - "io.github.hakky54:logcaptor:2.11.0", |
75 | 69 | "io.opentelemetry.contrib:opentelemetry-jfr-connection:${otelContribVersion}-alpha", |
76 | 70 | "io.opentelemetry.contrib:opentelemetry-runtime-attach-core:${otelContribVersion}-alpha", |
77 | 71 | "com.google.code.findbugs:jsr305:3.0.2", |
@@ -103,22 +97,3 @@ dependencies { |
103 | 97 | } |
104 | 98 | } |
105 | 99 | } |
106 | | - |
107 | | -fun isNonStable(version: String): Boolean { |
108 | | - val stableKeyword = listOf("RELEASE", "FINAL", "GA").any { version.uppercase().contains(it) } |
109 | | - val regex = "^[0-9,.v-]+(-r)?$".toRegex() |
110 | | - val isGuava = version.endsWith("-jre") |
111 | | - val isStable = stableKeyword || regex.matches(version) || isGuava |
112 | | - return isStable.not() |
113 | | -} |
114 | | - |
115 | | -tasks { |
116 | | - named<DependencyUpdatesTask>("dependencyUpdates") { |
117 | | - revision = "release" |
118 | | - checkConstraints = true |
119 | | - |
120 | | - rejectVersionIf { |
121 | | - isNonStable(candidate.version) |
122 | | - } |
123 | | - } |
124 | | -} |
0 commit comments