diff init.gradle @ 139:998693eba42e

handle stub subprojects which only contain other subprojects
author smith@nwoca.org
date Tue, 24 Sep 2013 16:15:38 +0100
parents 23e24ef3cd6b
children 615ef3a8f0b8
line wrap: on
line diff
--- a/init.gradle	Fri Sep 13 23:50:53 2013 +0100
+++ b/init.gradle	Tue Sep 24 16:15:38 2013 +0100
@@ -236,7 +236,7 @@
                               
             }           
             
-            if ( thisProject.repositories.find { it.name == 'local' } ) {
+            if ( thisProject.repositories.find { it.name == 'local' } && thisProject.getTasksByName('uploadArchives',false) ) {
                 uploadArchives {
                    repositories {                     
                          add thisProject.repositories.local