File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import org.gradle.api.tasks.testing.logging.TestLogEvent
5
5
plugins {
6
6
kotlin(" multiplatform" ) version " 1.6.10" apply false
7
7
id(" base" )
8
+ id(" com.github.ben-manes.versions" ) version " 0.42.0"
8
9
}
9
10
10
11
buildscript {
@@ -268,3 +269,23 @@ subprojects {
268
269
}
269
270
}
270
271
}
272
+
273
+ tasks.withType< com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask > {
274
+
275
+ fun isNonStable (version : String ): Boolean {
276
+ val stableKeyword = listOf (" RELEASE" , " FINAL" , " GA" ).any { version.toUpperCase().contains(it) }
277
+ val versionMatch = " ^[0-9,.v-]+(-r)?$" .toRegex().matches(version)
278
+
279
+ return (stableKeyword || versionMatch).not ()
280
+ }
281
+
282
+ rejectVersionIf {
283
+ isNonStable(candidate.version)
284
+ }
285
+
286
+ checkForGradleUpdate = true
287
+ outputFormatter = " plain,html"
288
+ outputDir = " build/dependency-reports"
289
+ reportfileName = " dependency-updates"
290
+ }
291
+ // check for latest dependencies - ./gradlew dependencyUpdates -Drevision=release
You can’t perform that action at this time.
0 commit comments