Mercurial > public > develkit
comparison init40-git.gradle @ 335:6ffbb6233f85
remove println
author | Marc Davis <davis@ssdt-ohio.org> |
---|---|
date | Mon, 06 Mar 2023 15:42:54 -0500 |
parents | 64a8d53c6d98 |
children | de8c350c511a |
comparison
equal
deleted
inserted
replaced
334:64a8d53c6d98 | 335:6ffbb6233f85 |
---|---|
814 .findAll { it.contains('release') || it.contains('hotfix') } | 814 .findAll { it.contains('release') || it.contains('hotfix') } |
815 .collect { it.replaceAll('\\s+', ' ').split('/').last() - 'v' } | 815 .collect { it.replaceAll('\\s+', ' ').split('/').last() - 'v' } |
816 .collect { new Version(*it.split('\\.')*.toInteger()) } | 816 .collect { new Version(*it.split('\\.')*.toInteger()) } |
817 | 817 |
818 def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 } | 818 def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 } |
819 results.each { println it } | |
820 if (results.isEmpty()) { | 819 if (results.isEmpty()) { |
821 return new Version().nextSnapshot() | 820 return new Version().nextSnapshot() |
822 } else { | 821 } else { |
823 return results.first().nextSnapshot() | 822 return results.first().nextSnapshot() |
824 } | 823 } |