Skip to content

Commit 7f12702

Browse files
committed
Updated to Kotlin 1.2.50
1 parent 45439ab commit 7f12702

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

build.gradle

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
buildscript {
2-
ext.kotlin_version = '1.2.31'
3-
42
repositories {
53
mavenCentral()
64
}
75

86
dependencies {
9-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
7+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
108
}
119
}
1210

@@ -18,7 +16,7 @@ group = 'org.javacs'
1816
version = '0.1.1'
1917

2018
mainClassName = "org.javacs.kt.MainKt"
21-
description = "kotlin-language-server"
19+
description = "Code completions, diagnostics and more for Kotlin"
2220

2321
sourceCompatibility = 1.8
2422
targetCompatibility = 1.8
@@ -38,13 +36,13 @@ dependencies {
3836
implementation "com.google.guava:guava:21.0"
3937
implementation "org.gradle:gradle-tooling-api:4.3"
4038
implementation "org.eclipse.lsp4j:org.eclipse.lsp4j:0.4.1"
41-
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.2.31"
42-
implementation "org.jetbrains.kotlin:kotlin-compiler:1.2.31"
39+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
40+
implementation "org.jetbrains.kotlin:kotlin-compiler:$kotlinVersion"
4341
implementation fileTree(dir: "lib", include: ["*.jar"])
44-
testImplementation "org.openjdk.jmh:jmh-core:1.20"
4542
testImplementation "org.hamcrest:hamcrest-all:1.3"
4643
testImplementation "junit:junit:4.10"
47-
compileOnly "org.openjdk.jmh:jmh-generator-annprocess:1.20"
44+
testImplementation "org.openjdk.jmh:jmh-core:1.20"
45+
annotationProcessor "org.openjdk.jmh:jmh-generator-annprocess:1.20"
4846
}
4947

5048
configurations.all { config ->

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kotlinVersion=1.2.50

src/main/kotlin/org/javacs/kt/Compiler.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import com.intellij.openapi.vfs.StandardFileSystems
55
import com.intellij.openapi.vfs.VirtualFileManager
66
import com.intellij.psi.PsiFileFactory
77
import org.jetbrains.kotlin.cli.common.script.CliScriptDefinitionProvider
8-
import org.jetbrains.kotlin.cli.jvm.compiler.CliLightClassGenerationSupport.CliBindingTrace
8+
import org.jetbrains.kotlin.cli.jvm.compiler.CliBindingTrace
99
import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles
1010
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment
1111
import org.jetbrains.kotlin.cli.jvm.compiler.TopDownAnalyzerFacadeForJVM

src/test/java/org/javacs/kt/OneFilePerformance.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import com.intellij.openapi.vfs.VirtualFileSystem;
88
import com.intellij.psi.PsiManager;
99
import com.intellij.psi.util.PsiTreeUtil;
10-
import org.jetbrains.kotlin.cli.jvm.compiler.CliLightClassGenerationSupport;
10+
import org.jetbrains.kotlin.cli.jvm.compiler.CliBindingTrace;
1111
import org.jetbrains.kotlin.cli.jvm.compiler.EnvironmentConfigFiles;
1212
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment;
1313
import org.jetbrains.kotlin.config.CommonConfigurationKeys;
@@ -64,7 +64,7 @@ KtFile openFile(String resourcePath) {
6464
}
6565

6666
BindingTraceContext compile(Collection<KtFile> compile, Collection<KtFile> sourcePath) {
67-
BindingTraceContext trace = new CliLightClassGenerationSupport.CliBindingTrace();
67+
BindingTraceContext trace = new CliBindingTrace();
6868
new ComponentProvider(){
6969

7070
@Override

0 commit comments

Comments
 (0)