buildscript { repositories { mavenCentral() maven { url "https://plugins.gradle.org/m2/" } } dependencies { classpath "com.github.rodm:gradle-teamcity-plugin:0.9.1" } } ext { teamCityVersion = property('TeamCityVersion') buildVersion = System.getenv("BUILD_NUMBER") if (buildVersion == null || buildVersion.length() == 0) { buildVersion = 'SNAPSHOT-' + new Date().format('yyyyMMddHHmm') } } subprojects { group = 'jetbrains.buildServer.powershell' version = buildVersion repositories { maven { url "http://download.jetbrains.com/teamcity-repository" } mavenCentral() mavenLocal() } } task wrapper(type: Wrapper) { gradleVersion = '3.1' }