Mercurial > public > develkit
comparison init20.gradle @ 191:5b142b2b730f
fix for other local repos
author | smith@nwoca.org |
---|---|
date | Mon, 13 Apr 2015 16:50:17 +0100 |
parents | 524680aba8d3 |
children | 4f8780714e4d |
comparison
equal
deleted
inserted
replaced
190:524680aba8d3 | 191:5b142b2b730f |
---|---|
373 maven { | 373 maven { |
374 name = 'ssdt-repository' | 374 name = 'ssdt-repository' |
375 url = "${ssdtArtifactory}/repository" | 375 url = "${ssdtArtifactory}/repository" |
376 } | 376 } |
377 | 377 |
378 | |
379 } | 378 } |
380 | 379 |
381 def remoteRepos = thisProject.repositories.findAll { !(it.name == 'local' || it.url.toString().contains('ssdt')) } | 380 def remoteRepos = thisProject.repositories.findAll { it.hasProperty('url') && !(it.name == 'local' || it.url.toString().contains('ssdt')) } |
382 if (remoteRepos) { | 381 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..." | 382 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 { | 383 remoteRepos.each { |
385 thisProject.repositories.remove(it) | 384 thisProject.repositories.remove(it) |
386 thisProject.repositories.addLast(it) | 385 thisProject.repositories.addLast(it) |
387 } | 386 } |
388 } | 387 } |
389 logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name $it.url" }.join('\n') | 388 logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name ${it.hasProperty('url') ? it.url : '' }" }.join('\n') |
390 | 389 |
391 | 390 |
392 if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { | 391 if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) { |
393 uploadArchives { | 392 uploadArchives { |
394 repositories { | 393 repositories { |