Skip to content

Commit

Permalink
Update to kotlin 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dtretyakov committed Mar 16, 2017
1 parent ed38a2e commit 726ac3a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
11 changes: 1 addition & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
plugins {
id "com.zoltu.kotlin" version "1.0.5"
id "com.github.rodm.teamcity-server" version "0.10"
id "org.jetbrains.kotlin.jvm" version "1.1.1"
}

ext {
kotlinVersion = '1.0.5-2'

def correctVersion = project.hasProperty('versionNumber') && property('versionNumber') ==~ /\d+\.\d+\.\d+.*/
versionNumber = correctVersion ? property('versionNumber') : 'SNAPSHOT-' + new Date().format('yyyyMMddHHmmss')
projectIds = ['group': 'teamcity-dotnet-plugin', 'version': versionNumber, 'artifact': 'dotnet-core-plugin']

teamcityVersion = project.hasProperty('teamcityVersion') ? property('teamcityVersion') : '9.0'

teamcityDir = project.hasProperty('teamcityDir') ? property('teamcityDir') : "$rootDir/servers/TeamCity-${teamcityVersion}"
teamcityDataDir = "$rootDir/data/" + (teamcityVersion =~ /(\d+\.\d+).*/)[0][1]

teamcityJavaHome = System.properties['java.home']
}

group = projectIds.group
Expand Down
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
kotlinVersion=1.1.1
4 changes: 3 additions & 1 deletion plugin-dotnet-agent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.github.rodm.teamcity-agent'
plugins {
id 'com.github.rodm.teamcity-agent' version "0.11"
}

teamcity {
version = teamcityVersion
Expand Down
4 changes: 3 additions & 1 deletion plugin-dotnet-common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.github.rodm.teamcity-common'
plugins{
id 'com.github.rodm.teamcity-common' version "0.11"
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}"
Expand Down
9 changes: 7 additions & 2 deletions plugin-dotnet-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
apply plugin: 'com.github.rodm.teamcity-server'
plugins {
id 'com.github.rodm.teamcity-server' version "0.11"
}

teamcity {
version = teamcityVersion
Expand All @@ -19,4 +21,7 @@ dependencies {
}

serverPlugin.version = null
serverPlugin.baseName = projectIds.artifact
serverPlugin.baseName = projectIds.artifact

sourceCompatibility = 1.7
targetCompatibility = 1.7

0 comments on commit 726ac3a

Please sign in to comment.