Skip to content

Commit 5f0ad0e

Browse files
tyvsmithtschuchortdev
authored andcommitted
Bump to Kotlin 1.3.70
1 parent 614b858 commit 5f0ad0e

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Add dependency to your module's `build.gradle` file:
9797
```Groovy
9898
dependencies {
9999
// ...
100-
implementation 'com.github.tschuchortdev:kotlin-compile-testing:1.2.6'
100+
implementation 'com.github.tschuchortdev:kotlin-compile-testing:1.2.7'
101101
}
102102
```
103103

@@ -109,7 +109,7 @@ Kotlin-Compile-Testing is compatible with all _local_ compiler versions. It does
109109

110110
However, if your project or any of its dependencies depend directly on compiler artifacts such as `kotlin-compiler-embeddable` or `kotlin-annotation-processing-embeddable` then they have to be the same version as the one used by Kotlin-Compile-Testing or there will be a transitive dependency conflict.
111111

112-
- Current `kotlin-compiler-embeddable` version: `1.3.61`
112+
- Current `kotlin-compiler-embeddable` version: `1.3.70`
113113

114114
Because the internal APIs of the Kotlin compiler often change between versions, we can only support one `kotlin-compiler-embeddable` version at a time.
115115

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.61'
2+
ext.kotlin_version = '1.3.70'
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.61'
18+
id 'org.jetbrains.kotlin.jvm' version '1.3.70'
1919
}
2020

2121
apply plugin: 'kotlin'
@@ -59,12 +59,12 @@ dependencies {
5959

6060
// This dependency is only needed as a "sample" compiler plugin to test that
6161
// running compiler plugins passed via the pluginClasspath CLI option works
62-
testRuntime "org.jetbrains.kotlin:kotlin-scripting-compiler:1.3.61"
62+
testRuntime "org.jetbrains.kotlin:kotlin-scripting-compiler:1.3.70"
6363

6464
// The Kotlin compiler should be near the end of the list because its .jar file includes
6565
// an obsolete version of Guava
66-
implementation "org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.61"
67-
implementation "org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.3.61"
66+
implementation "org.jetbrains.kotlin:kotlin-compiler-embeddable:1.3.70"
67+
implementation "org.jetbrains.kotlin:kotlin-annotation-processing-embeddable:1.3.70"
6868
}
6969

7070
compileKotlin {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ kotlin.code.style=official
22
kotlin.incremental=false
33

44
GROUP=com.github.tschuchortdev
5-
VERSION_NAME=1.2.6
5+
VERSION_NAME=1.2.7
66
POM_DESCRIPTION=A library that enables testing of Kotlin annotation processors, compiler plugins and code generation.
77
POM_INCEPTION_YEAR=2019
88
POM_URL=https://github.com/tschuchortdev/kotlin-compile-testing

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import org.jetbrains.kotlin.config.JvmTarget
3838
import org.jetbrains.kotlin.config.Services
3939
import org.jetbrains.kotlin.kapt3.base.incremental.DeclaredProcType
4040
import org.jetbrains.kotlin.kapt3.base.incremental.IncrementalProcessor
41+
import org.jetbrains.kotlin.kapt3.util.MessageCollectorBackedKaptLogger
4142
import java.io.*
4243
import java.lang.RuntimeException
4344
import java.net.URI
@@ -509,6 +510,8 @@ class KotlinCompilation {
509510
it.flags.addAll(KaptFlag.MAP_DIAGNOSTIC_LOCATIONS, KaptFlag.VERBOSE)
510511
}
511512

513+
val kaptLogger = MessageCollectorBackedKaptLogger(kaptOptions.build())
514+
512515
/** The main compiler plugin (MainComponentRegistrar)
513516
* is instantiated by K2JVMCompiler using
514517
* a service locator. So we can't just pass parameters to it easily.
@@ -518,7 +521,7 @@ class KotlinCompilation {
518521
*/
519522
MainComponentRegistrar.threadLocalParameters.set(
520523
MainComponentRegistrar.ThreadLocalParameters(
521-
annotationProcessors.map { IncrementalProcessor(it, DeclaredProcType.NON_INCREMENTAL) },
524+
annotationProcessors.map { IncrementalProcessor(it, DeclaredProcType.NON_INCREMENTAL, kaptLogger) },
522525
kaptOptions,
523526
compilerPlugins
524527
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ class KotlinCompilationTests {
632632
fun `detects the plugin provided for compilation via pluginClasspaths property`() {
633633
val result = defaultCompilerConfig().apply {
634634
sources = listOf(SourceFile.kotlin("kSource.kt", "class KSource"))
635-
pluginClasspaths = listOf(classpathOf("kotlin-scripting-compiler-1.3.61"))
635+
pluginClasspaths = listOf(classpathOf("kotlin-scripting-compiler-1.3.70"))
636636
}.compile()
637637

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

0 commit comments

Comments
 (0)