comparison init40.gradle @ 291:7dc9624e59f7

Always apply artifactory40 ssdt config. Skip functionality if the build is non bamboo
author Marc Davis <marc.davis@mcoecn.org>
date Mon, 22 Aug 2022 14:32:18 -0400
parents a9198ab8eed1
children 2307b12a55e6
comparison
equal deleted inserted replaced
285:699e05046398 291:7dc9624e59f7
136 } 136 }
137 137
138 println "Indy available: ${rootProject.indyCapable()} enabled: ${rootProject.useIndy()}" 138 println "Indy available: ${rootProject.indyCapable()} enabled: ${rootProject.useIndy()}"
139 139
140 if (gradle.bambooBuild) { 140 if (gradle.bambooBuild) {
141
142 file('build-number.txt').text = "build.number=${gradle.branch.buildNumber ?: -1 }\n" 141 file('build-number.txt').text = "build.number=${gradle.branch.buildNumber ?: -1 }\n"
143 gradle.ext.ssdtGradlekitLocation = gradle.ext.has('ssdtGradlekitLocation') ? gradle.ssdtGradlekitLocation : 'http://hg.ssdt-ohio.org/ssdt/gradlekit/raw-file/tip' 142 }
144 logger.info "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" 143 gradle.ext.ssdtGradlekitLocation = gradle.ext.has('ssdtGradlekitLocation') ? gradle.ssdtGradlekitLocation : 'http://hg.ssdt-ohio.org/ssdt/gradlekit/raw-file/tip'
145 println "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" 144 logger.info "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)"
146 apply from: "${gradle.ssdtGradlekitLocation}/artifactory40.gradle" 145 println "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)"
147 } 146 apply from: "${gradle.ssdtGradlekitLocation}/artifactory40.gradle"
148 147
149 if (!rootProject.hasProperty('disableMetrics')) { 148 if (!rootProject.hasProperty('disableMetrics')) {
150 println "applying SSDT metrics40.gradle" 149 println "applying SSDT metrics40.gradle"
151 apply from: "${gradle.ssdtDevelkitLocation}/metrics40.gradle" 150 apply from: "${gradle.ssdtDevelkitLocation}/metrics40.gradle"
152 } 151 }
255 def l = pf.readLines().sort() 254 def l = pf.readLines().sort()
256 pf.text = l.join('\n').replaceAll("\\.PARENT","") 255 pf.text = l.join('\n').replaceAll("\\.PARENT","")
257 } 256 }
258 } 257 }
259 } 258 }
259 }
260
261 if (!gradle.bambooBuild) {
262 artifactoryPublish.skip = true
260 } 263 }
261 264
262 } 265 }
263 266
264 subprojects { 267 subprojects {