diff init50-git.gradle @ 343:54614542f0f7

add println for debugging
author Marc Davis <marc.davis@mcoecn.org>
date Wed, 14 Jun 2023 14:32:05 -0400
parents 64a8d53c6d98
children 0bef709263cd
line wrap: on
line diff
--- a/init50-git.gradle	Fri Jun 09 14:28:13 2023 -0400
+++ b/init50-git.gradle	Wed Jun 14 14:32:05 2023 -0400
@@ -806,6 +806,7 @@
                             //non semver tag found, ignoring
                         }
                     }
+                    .findAll { it != null }
                     .sort { v1, v2 -> v2 <=> v1 }
 
             def branches = "git branch --remote".execute().text.split("\n")
@@ -814,6 +815,8 @@
                     .collect { new Version(*it.split('\\.')*.toInteger()) }
 
             def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 }
+            results.each { println  it }
+            println "Selected version : ${results.first().nextSnapshot()}"
             if (results.isEmpty()) {
                 return new Version().nextSnapshot()
             } else {