This is an automated email from the ASF dual-hosted git repository.

paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy-geb.git

commit 360faf9d98ea21c055abb8610a2dc5310d0243aa
Author: Paul King <[email protected]>
AuthorDate: Sun Dec 15 22:42:29 2024 +1000

    Make dependency updates a little pickier about versions to show
---
 geb.gradle | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/geb.gradle b/geb.gradle
index f7caa0c8..3386b597 100644
--- a/geb.gradle
+++ b/geb.gradle
@@ -101,4 +101,13 @@ tasks.named('rat') {
         'logo.svg', // Logo svg
         'out/**', '*.ipr', '**/*.iml', '*.iws', '.idea/**', // Intellij files
     ]
-}
\ No newline at end of file
+}
+
+def UNSTABLE = /^([\d.-]+(alpha|beta|rc|m)[\d.-]+)$/
+// ignore non-stable releases
+tasks.named("dependencyUpdates")?.configure {
+    gradleReleaseChannel = 'current'
+    rejectVersionIf {
+        !(it.currentVersion.toLowerCase() ==~ UNSTABLE) && 
it.candidate.version.toLowerCase() ==~ UNSTABLE
+    }
+}

Reply via email to