# HG changeset patch # User Marc Davis # Date 1661193138 14400 # Node ID 7dc9624e59f7f693a2c6dfd053eeff18acbd00c7 # Parent 699e05046398bea2ff07fdae16f9b0232e5d083b Always apply artifactory40 ssdt config. Skip functionality if the build is non bamboo diff -r 699e05046398 -r 7dc9624e59f7 init40.gradle --- a/init40.gradle Thu Jun 23 13:21:12 2022 -0400 +++ b/init40.gradle Mon Aug 22 14:32:18 2022 -0400 @@ -138,13 +138,12 @@ println "Indy available: ${rootProject.indyCapable()} enabled: ${rootProject.useIndy()}" if (gradle.bambooBuild) { - file('build-number.txt').text = "build.number=${gradle.branch.buildNumber ?: -1 }\n" - gradle.ext.ssdtGradlekitLocation = gradle.ext.has('ssdtGradlekitLocation') ? gradle.ssdtGradlekitLocation : 'http://hg.ssdt-ohio.org/ssdt/gradlekit/raw-file/tip' - logger.info "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" - println "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" - apply from: "${gradle.ssdtGradlekitLocation}/artifactory40.gradle" } +gradle.ext.ssdtGradlekitLocation = gradle.ext.has('ssdtGradlekitLocation') ? gradle.ssdtGradlekitLocation : 'http://hg.ssdt-ohio.org/ssdt/gradlekit/raw-file/tip' +logger.info "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" +println "applying SSDT artifactory Gradle Settings (bamboo: $gradle.bambooBuild host: $hostname)" +apply from: "${gradle.ssdtGradlekitLocation}/artifactory40.gradle" if (!rootProject.hasProperty('disableMetrics')) { println "applying SSDT metrics40.gradle" @@ -259,6 +258,10 @@ } } + if (!gradle.bambooBuild) { + artifactoryPublish.skip = true + } + } subprojects {