/*
 * Copyright 2017-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
 */

def teamcitySuffix = project.findProperty("teamcitySuffix")?.toString()
if (!teamcityInteractionDisabled && project.hasProperty("teamcity") && !(build_snapshot_train || rootProject.properties['build_snapshot_up'])) {
    // Tell teamcity about version number
    def postfix = (teamcitySuffix == null) ? "" : " ($teamcitySuffix)"
    println("##teamcity[buildNumber '${project.version}${postfix}']")

    gradle.taskGraph.beforeTask {
        println("##teamcity[progressMessage 'Gradle: ${it.project.path}:${it.name}']")
    }
}
