# HG changeset patch # User smith@nwoca.org # Date 1428701976 -3600 # Node ID 524680aba8d3f88dc66272ae98fdfcb313fc9382 # Parent a80191d5a6ca2f797919bb5bb2f354372944c709 add code to re-order remote (non-ssdt) repositories. works-around problem with gretty 1.1.8 diff -r a80191d5a6ca -r 524680aba8d3 init20.gradle --- a/init20.gradle Mon Mar 30 17:44:06 2015 +0100 +++ b/init20.gradle Fri Apr 10 22:39:36 2015 +0100 @@ -377,6 +377,17 @@ } + + def remoteRepos = thisProject.repositories.findAll { !(it.name == 'local' || it.url.toString().contains('ssdt')) } + if (remoteRepos) { + logger.warn "WARNING: Remote repositories configured for $thisProject:\n" + remoteRepos.collect { "\t$it.name $it.url " }.join('\n') + "\n Moved to lowest priority..." + remoteRepos.each { + thisProject.repositories.remove(it) + thisProject.repositories.addLast(it) + } + } + logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name $it.url" }.join('\n') + if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { uploadArchives {