/*
 * 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 (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}']")
    }
}
