Skip to content

Commit 2fd92a5

Browse files
ZacSweerstschuchortdev
authored andcommitted
Update to Kotlin 1.3.60 (#31)
* Update to Kotlin 1.3.60 Note that since this is using private APIs of kotlin, it's not possible to support older versions simultaneously since it's not possible to detect what version of the tools you're consuming are without some very uncomfortable reflection.
1 parent f5eabda commit 2fd92a5

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.kotlin_version = '1.3.50'
2+
ext.kotlin_version = '1.3.60'
33

44
repositories {
55
mavenCentral()
@@ -15,7 +15,7 @@ buildscript {
1515

1616
plugins {
1717
id 'java'
18-
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
18+
id 'org.jetbrains.kotlin.jvm' version '1.3.60'
1919
}
2020

2121
apply plugin: 'kotlin'
@@ -56,12 +56,12 @@ dependencies {
5656

5757
// This dependency is only needed as a "sample" compiler plugin to test that
5858
// running compiler plugins passed via the pluginClasspath CLI option works
59-
testRuntime "org.jetbrains.kotlin:kotlin-scripting-compiler:1.3.50"
59+
testRuntime "org.jetbrains.kotlin:kotlin-scripting-compiler:1.3.60"
6060

6161
// The Kotlin compiler should be near the end of the list because its .jar file includes
6262
// an obsolete version of Guava
63-
implementation "org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.50"
64-
implementation "org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.3.50"
63+
implementation "org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.60"
64+
implementation "org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.3.60"
6565
}
6666

6767
compileKotlin {

src/main/kotlin/com/tschuchort/compiletesting/KaptComponentRegistrar.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import org.jetbrains.kotlin.kapt3.util.MessageCollectorBackedKaptLogger
4646
import org.jetbrains.kotlin.psi.KtFile
4747
import org.jetbrains.kotlin.resolve.BindingTrace
4848
import org.jetbrains.kotlin.resolve.jvm.extensions.AnalysisHandlerExtension
49+
import org.jetbrains.kotlin.resolve.jvm.extensions.PartialAnalysisHandlerExtension
4950
import java.io.File
5051

5152
internal class KaptComponentRegistrar(
@@ -96,7 +97,10 @@ internal class KaptComponentRegistrar(
9697
}
9798

9899
AnalysisHandlerExtension.registerExtension(project, kapt3AnalysisCompletedHandlerExtension)
99-
StorageComponentContainerContributor.registerExtension(project, Kapt3ComponentRegistrar.KaptComponentContributor())
100+
StorageComponentContainerContributor.registerExtension(
101+
project = project,
102+
extension = Kapt3ComponentRegistrar.KaptComponentContributor(kapt3AnalysisCompletedHandlerExtension)
103+
)
100104
}
101105

102106
private fun KaptOptions.Builder.checkOptions(project: MockProject, logger: KaptLogger, configuration: CompilerConfiguration): Boolean {

src/test/kotlin/com/tschuchort/compiletesting/KotlinCompilationTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ class KotlinCompilationTests {
628628
fun `detects the plugin provided for compilation via pluginClasspaths property`() {
629629
val result = defaultCompilerConfig().apply {
630630
sources = listOf(SourceFile.kotlin("kSource.kt", "class KSource"))
631-
pluginClasspaths = listOf(classpathOf("kotlin-scripting-compiler-1.3.50"))
631+
pluginClasspaths = listOf(classpathOf("kotlin-scripting-compiler-1.3.60"))
632632
}.compile()
633633

634634
assertThat(result.exitCode).isEqualTo(ExitCode.OK)

0 commit comments

Comments
 (0)