1/* 2 * Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. 3 */ 4 5def teamcitySuffix = project.findProperty("teamcitySuffix")?.toString() 6if (!teamcityInteractionDisabled && project.hasProperty("teamcity") && !(build_snapshot_train || rootProject.properties['build_snapshot_up'])) { 7 // Tell teamcity about version number 8 def postfix = (teamcitySuffix == null) ? "" : " ($teamcitySuffix)" 9 println("##teamcity[buildNumber '${project.version}${postfix}']") 10 11 gradle.taskGraph.beforeTask { 12 println("##teamcity[progressMessage 'Gradle: ${it.project.path}:${it.name}']") 13 } 14} 15