comparison init70-github.gradle @ 341:b892973af800

remove println
author marc_davis <davis@ssdt-ohio.org>
date Tue, 30 May 2023 14:29:32 -0400
parents 5b1ab7484ad7
children 3504897af0f5
comparison
equal deleted inserted replaced
340:5b1ab7484ad7 341:b892973af800
804 .findAll { it.contains('release') || it.contains('hotfix') } 804 .findAll { it.contains('release') || it.contains('hotfix') }
805 .collect { it.replaceAll('\\s+', ' ').split('/').last() - 'v' } 805 .collect { it.replaceAll('\\s+', ' ').split('/').last() - 'v' }
806 .collect { new Version(*it.split('\\.')*.toInteger()) } 806 .collect { new Version(*it.split('\\.')*.toInteger()) }
807 807
808 def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 } 808 def results = (branches + versions).sort { v1, v2 -> v2 <=> v1 }
809
810 results.each { println it.toString() }
811 809
812 if (results.isEmpty()) { 810 if (results.isEmpty()) {
813 return new Version().nextSnapshot() 811 return new Version().nextSnapshot()
814 } else { 812 } else {
815 return results.first().nextSnapshot() 813 return results.first().nextSnapshot()