comparison init.gradle @ 84:fa7b349201eb

add descriptions to tasks
author smith@nwoca.org
date Fri, 10 Feb 2012 13:22:29 -0500
parents 9c551ecc816a
children f36eeb411845
comparison
equal deleted inserted replaced
83:9c551ecc816a 84:fa7b349201eb
16 // patch wrapper path for 1.0-milestone-7 (http://issues.gradle.org/browse/GRADLE-1823) 16 // patch wrapper path for 1.0-milestone-7 (http://issues.gradle.org/browse/GRADLE-1823)
17 ant.replace(file: 'gradlew', token: '\\wrapper\\gradle-wrapper.jar',value:'/wrapper/gradle-wrapper.jar') 17 ant.replace(file: 'gradlew', token: '\\wrapper\\gradle-wrapper.jar',value:'/wrapper/gradle-wrapper.jar')
18 } 18 }
19 19
20 allprojects { 20 allprojects {
21 task cleanLocal << { 21 task cleanLocal(description: "removes all artifacts from developer's local repository") << {
22
22 def local = project.repositories.find { it.name == 'local' } 23 def local = project.repositories.find { it.name == 'local' }
23 if ( local ) { 24 if ( local ) {
24 logger.info "removing local repo: $it" 25 logger.info "removing local repo: $it"
25 new File(System.properties['user.home'] + "/.ssdt/local-repo").deleteDir() 26 new File(System.properties['user.home'] + "/.ssdt/local-repo").deleteDir()
26 } 27 }
27 } 28 }
28 cleanLocal.onlyIf { 29 cleanLocal.onlyIf {
29 project.repositories.any { it.name == 'local' } 30 project.repositories.any { it.name == 'local' }
30 } 31 }
31 task publishLocal(dependsOn: 'uploadArchives') << { println "published to local repository" } 32 task publishLocal(dependsOn: 'uploadArchives') {
33 description = "Publishes this projects artifacts to developer's local repository"
34 }
32 35
33 } 36 }
34 37
35 class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener { 38 class ArtifactoryGradleSettings extends BuildAdapter implements BuildListener {
36 39