Mercurial > public > develkit
diff init20.gradle @ 190:524680aba8d3
add code to re-order remote (non-ssdt) repositories. works-around problem with gretty 1.1.8
author | smith@nwoca.org |
---|---|
date | Fri, 10 Apr 2015 22:39:36 +0100 |
parents | a80191d5a6ca |
children | 5b142b2b730f |
line wrap: on
line diff
--- 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 {