diff 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
line wrap: on
line diff
--- a/init20.gradle	Fri Apr 10 22:39:36 2015 +0100
+++ b/init20.gradle	Mon Apr 13 16:50:17 2015 +0100
@@ -375,10 +375,9 @@
                     url = "${ssdtArtifactory}/repository"
                 }
 
-
             }
 			
-			def remoteRepos = thisProject.repositories.findAll { !(it.name == 'local' || it.url.toString().contains('ssdt')) }	
+			def remoteRepos = thisProject.repositories.findAll { it.hasProperty('url') && !(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 {
@@ -386,7 +385,7 @@
 					thisProject.repositories.addLast(it)
 				}
 			}
-			logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name $it.url" }.join('\n')
+			logger.info "$thisProject configured repositories:\n" + thisProject.repositories.collect {"\t$it.name ${it.hasProperty('url') ? it.url : '' }" }.join('\n')
 			
 
             if (thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives', false)) {