Skip to content

Commit 24c15d2

Browse files
committed
Added kotlin-plugin from the JetBrains TeamCity CI
1 parent 7f12702 commit 24c15d2

File tree

4 files changed

+30
-11
lines changed

4 files changed

+30
-11
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
.idea/
88
*.iml
99

10+
lib-kotlin/
1011
bin/
1112
build/
1213
target/

build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ buildscript {
88
}
99
}
1010

11+
plugins {
12+
id "com.github.jk1.tcdeps" version "0.17"
13+
}
14+
1115
apply plugin: 'kotlin'
1216
apply plugin: 'application'
1317
apply plugin: 'maven'
@@ -30,14 +34,30 @@ kotlin {
3034
repositories {
3135
mavenCentral()
3236
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
37+
teamcityServer {
38+
url = 'http://teamcity.jetbrains.com'
39+
credentials {
40+
username = 'guest'
41+
password = 'guest'
42+
}
43+
}
44+
}
45+
46+
configurations {
47+
kotlinJVMLib
3348
}
3449

3550
dependencies {
51+
def kotlinTeamCity = "$kotlinBuildType:$kotlinBuild:kotlin-plugin-${kotlinPluginBuild}.zip!/Kotlin"
52+
3653
implementation "com.google.guava:guava:21.0"
3754
implementation "org.gradle:gradle-tooling-api:4.3"
3855
implementation "org.eclipse.lsp4j:org.eclipse.lsp4j:0.4.1"
56+
3957
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
4058
implementation "org.jetbrains.kotlin:kotlin-compiler:$kotlinVersion"
59+
kotlinJVMLib tc("$kotlinTeamCity/lib/kotlin-plugin.jar")
60+
4161
implementation fileTree(dir: "lib", include: ["*.jar"])
4262
testImplementation "org.hamcrest:hamcrest-all:1.3"
4363
testImplementation "junit:junit:4.10"
@@ -58,4 +78,10 @@ test {
5878
}
5979
}
6080

81+
task copyKotlinLib(type: Copy) {
82+
from configurations.kotlinJVMLib
83+
into "$projectDir/lib-kotlin"
84+
}
85+
86+
compileKotlin.dependsOn copyKotlinLib
6187
build.finalizedBy(installDist)

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
kotlinVersion=1.2.50
2+
kotlinBuildType=Kotlin_1250_CompilerAllPlugins
3+
kotlinBuild=1.2.50-release-103
4+
kotlinPluginBuild=1.2.50-release-IJ2018.2-1

lib/kotlin-converter-license.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)