Mercurial > public > develkit
comparison 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 |
comparison
equal
deleted
inserted
replaced
189:a80191d5a6ca | 190:524680aba8d3 |
---|---|
375 url = "${ssdtArtifactory}/repository" | 375 url = "${ssdtArtifactory}/repository" |
376 } | 376 } |
377 | 377 |
378 | 378 |
379 } | 379 } |
380 | |
381 def remoteRepos = thisProject.repositories.findAll { !(it.name == 'local' || it.url.toString().contains('ssdt')) } | |
382 if (remoteRepos) { | |
383 logger.warn "WARNING: Remote repositories configured for $thisProject:\n" + remoteRepos.collect { "\t$it.name $it.url " }.join('\n') + "\n Moved to lowest priority..." | |
384 remoteRepos.each { | |
385 thisProject.repositories.remove(it) | |
386 thisProject.repositories.addLast(it) | |
387 } | |
388 } | |
389 logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name $it.url" }.join('\n') | |
390 | |
380 | 391 |
381 if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { | 392 if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { |
382 uploadArchives { | 393 uploadArchives { |
383 repositories { | 394 repositories { |
384 add thisProject.repositories.local | 395 add thisProject.repositories.local |