Mercurial > public > develkit
comparison init40-git.gradle @ 332:ae546c35dee4
debug println
author | Marc Davis <davis@ssdt-ohio.org> |
---|---|
date | Mon, 06 Mar 2023 15:11:10 -0500 |
parents | 7bc7c6c79d7c |
children | 10e2b8595ace |
comparison
equal
deleted
inserted
replaced
331:7bc7c6c79d7c | 332:ae546c35dee4 |
---|---|
814 .findAll { it.contains('release') || it.contains('hotfix') } | 814 .findAll { it.contains('release') || it.contains('hotfix') } |
815 .collect { it.replaceAll('\\s+', ' ').split(' ')[1].split('/')[2] - 'v' } | 815 .collect { it.replaceAll('\\s+', ' ').split(' ')[1].split('/')[2] - '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 } | |
819 if (results.isEmpty()) { | 820 if (results.isEmpty()) { |
820 return new Version().nextSnapshot() | 821 return new Version().nextSnapshot() |
821 } else { | 822 } else { |
822 return results.first().nextSnapshot() | 823 return results.first().nextSnapshot() |
823 } | 824 } |