Skip to content

Commit cd4ab56

Browse files
Update to Kotlin 1.7.0 and release (#283)
1 parent 61e5fda commit cd4ab56

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

README.md

+4-3
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-
testImplementation 'com.github.tschuchortdev:kotlin-compile-testing:1.4.8'
100+
testImplementation 'com.github.tschuchortdev:kotlin-compile-testing:1.4.9'
101101
}
102102
```
103103

@@ -109,7 +109,8 @@ 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.6.20`
112+
113+
- Current `kotlin-compiler-embeddable` version: `1.7.0`
113114

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

@@ -121,7 +122,7 @@ To test KSP processors, you need to use the KSP dependency:
121122

122123
```Groovy
123124
dependencies {
124-
testImplementation 'com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.8'
125+
testImplementation 'com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.9'
125126
}
126127
```
127128

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
2-
ext.kotlin_version = '1.6.21'
3-
ext.embedded_kotlin_version = '1.7.0-RC'
2+
ext.kotlin_version = '1.7.0'
3+
ext.embedded_kotlin_version = '1.7.0'
44

55
repositories {
66
mavenCentral()

core/src/main/kotlin/com/tschuchort/compiletesting/AbstractKotlinCompilation.kt

+1
Original file line numberDiff line numberDiff line change
@@ -277,4 +277,5 @@ internal fun convertKotlinExitCode(code: ExitCode) = when(code) {
277277
ExitCode.INTERNAL_ERROR -> KotlinCompilation.ExitCode.INTERNAL_ERROR
278278
ExitCode.COMPILATION_ERROR -> KotlinCompilation.ExitCode.COMPILATION_ERROR
279279
ExitCode.SCRIPT_EXECUTION_ERROR -> KotlinCompilation.ExitCode.SCRIPT_EXECUTION_ERROR
280+
ExitCode.OOM_ERROR -> throw OutOfMemoryError("Kotlin compiler ran out of memory")
280281
}

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kotlin.incremental=false
44
kapt.include.compile.classpath=false
55

66
GROUP=com.github.tschuchortdev
7-
VERSION_NAME=1.4.9-SNAPSHOT
7+
VERSION_NAME=1.4.9
88
POM_DESCRIPTION=A library that enables testing of Kotlin annotation processors, compiler plugins and code generation.
99
POM_INCEPTION_YEAR=2019
1010
POM_URL=https\://github.com/tschuchortdev/kotlin-compile-testing

ksp/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.ksp_version='1.7.0-RC2-1.0.5'
2+
ext.ksp_version='1.7.0-1.0.6'
33
}
44

55
dependencies {

0 commit comments

Comments
 (0)