comparison init20.gradle @ 181:d90208c97ec5

use artifactory script for gradle 2.0
author smith@nwoca.org
date Fri, 19 Dec 2014 17:18:59 +0000
parents 1bdb6e1f2fdb
children 0de8c0720fb4
comparison
equal deleted inserted replaced
180:1bdb6e1f2fdb 181:d90208c97ec5
102 println "Indy available: ${rootProject.indyCapable()} enabled: ${rootProject.useIndy()}" 102 println "Indy available: ${rootProject.indyCapable()} enabled: ${rootProject.useIndy()}"
103 103
104 if (gradle.bambooBuild) { 104 if (gradle.bambooBuild) {
105 gradle.ext.ssdtGradlekitLocation = gradle.ext.has('ssdtGradlekitLocation') ? gradle.ssdtGradlekitLocation : 'http://hg.ssdt-ohio.org/ssdt/gradlekit/raw-file/tip' 105 gradle.ext.ssdtGradlekitLocation = gradle.ext.has('ssdtGradlekitLocation') ? gradle.ssdtGradlekitLocation : 'http://hg.ssdt-ohio.org/ssdt/gradlekit/raw-file/tip'
106 logger.info "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" 106 logger.info "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)"
107 apply from: "${gradle.ssdtGradlekitLocation}/artifactory.gradle" 107 apply from: "${gradle.ssdtGradlekitLocation}/artifactory20.gradle"
108 } 108 }
109 109
110 110
111 buildscript { 111 buildscript {
112 repositories { 112 repositories {
232 def t = taskName.contains('Test') ? processTestResources.destinationDir : processResources.destinationDir 232 def t = taskName.contains('Test') ? processTestResources.destinationDir : processResources.destinationDir
233 def e = (taskName - 'Test' - 'AsProperties').capitalize() 233 def e = (taskName - 'Test' - 'AsProperties').capitalize()
234 task(taskName) { 234 task(taskName) {
235 ext.propertyFile = new File(t, "${e.toLowerCase()}.properties") 235 ext.propertyFile = new File(t, "${e.toLowerCase()}.properties")
236 ext.buildenv = project.file('build/buildenv.txt') 236 ext.buildenv = project.file('build/buildenv.txt')
237 inputs.files "../environment${e}.groovy", "../private${e}.groovy", '../private.properties' 237 inputs.files project.file("../environment${e}.groovy"), project.file("../private${e}.groovy"), project.file('../private.properties')
238 outputs.files propertyFile, buildenv 238 outputs.files propertyFile, buildenv
239 outputs.upToDateWhen { 239 outputs.upToDateWhen {
240 gradle.env == project.previousBuildenv 240 gradle.env == project.previousBuildenv
241 } 241 }
242 doLast { 242 doLast {