Mercurial > public > develkit
comparison init20.gradle @ 261:b7b65152446e
handle maven local as not-remote repo
author | smith@nwoca.org |
---|---|
date | Mon, 05 Nov 2018 14:28:22 +0000 |
parents | 7b699c240ceb |
children | e531b09c4659 |
comparison
equal
deleted
inserted
replaced
260:7b699c240ceb | 261:b7b65152446e |
---|---|
511 url = "${ssdtArtifactory}/repository" | 511 url = "${ssdtArtifactory}/repository" |
512 } | 512 } |
513 | 513 |
514 } | 514 } |
515 | 515 |
516 def remoteRepos = thisProject.repositories.findAll { it.hasProperty('url') && !(it.name == 'local' || it.url.toString().contains('ssdt')) } | 516 def remoteRepos = thisProject.repositories.findAll { it.hasProperty('url') && !(it.name.toLowerCase().contains('local') || it.url.toString().contains('ssdt')) } |
517 if (remoteRepos) { | 517 if (remoteRepos) { |
518 logger.warn "WARNING: Remote repositories configured for $thisProject:\n" + remoteRepos.collect { "\t$it.name $it.url " }.join('\n') + "\n Moved to lowest priority..." | 518 logger.warn "WARNING: Remote repositories configured for $thisProject:\n" + remoteRepos.collect { "\t$it.name $it.url " }.join('\n') + "\n Moved to lowest priority..." |
519 remoteRepos.each { | 519 remoteRepos.each { |
520 thisProject.repositories.remove(it) | 520 thisProject.repositories.remove(it) |
521 thisProject.repositories.addLast(it) | 521 thisProject.repositories.addLast(it) |