diff init.gradle @ 87:be111b66cdc6

fix publishlocal task
author smith@nwoca.org
date Tue, 14 Feb 2012 15:52:29 -0500
parents f36eeb411845
children b72ba5cb5c53
line wrap: on
line diff
--- a/init.gradle	Tue Feb 14 15:41:45 2012 -0500
+++ b/init.gradle	Tue Feb 14 15:52:29 2012 -0500
@@ -82,16 +82,16 @@
             }           
             
             if ( thisProject.repositories.find { it.name == 'local' } ) {
- //               uploadArchives {
- //                  repositories {                     
- //                        add thisProject.repositories.local
- //                   }
- //               }
+                uploadArchives {
+                   repositories {                     
+                         add thisProject.repositories.local
+                    }
+                }
                 
-//                task publishLocal(dependsOn: 'uploadArchives') {
-//                   description = "Publishes this projects artifacts to developer's local repository"
-//                }
-
+                thisProject.tasks.add("publishLocal") {
+                    description = "Publishes this projects artifacts to developer's local repository"
+                    dependsOn = ["uploadArchives"]
+                }
             }          
         }
     }