From cd4ab56914a0c68867ed4cec03a50d8fd3c8ab39 Mon Sep 17 00:00:00 2001 From: Thilo Schuchort Date: Tue, 14 Jun 2022 00:18:03 +0200 Subject: [PATCH] Update to Kotlin 1.7.0 and release (#283) --- README.md | 7 ++++--- build.gradle | 4 ++-- .../tschuchort/compiletesting/AbstractKotlinCompilation.kt | 1 + gradle.properties | 2 +- ksp/build.gradle | 2 +- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ada17a01..e394c315 100644 --- a/README.md +++ b/README.md @@ -97,7 +97,7 @@ Add dependency to your module's `build.gradle` file: ```Groovy dependencies { // ... - testImplementation 'com.github.tschuchortdev:kotlin-compile-testing:1.4.8' + testImplementation 'com.github.tschuchortdev:kotlin-compile-testing:1.4.9' } ``` @@ -109,7 +109,8 @@ Kotlin-Compile-Testing is compatible with all _local_ compiler versions. It does 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. -- Current `kotlin-compiler-embeddable` version: `1.6.20` + +- Current `kotlin-compiler-embeddable` version: `1.7.0` Because the internal APIs of the Kotlin compiler often change between versions, we can only support one `kotlin-compiler-embeddable` version at a time. @@ -121,7 +122,7 @@ To test KSP processors, you need to use the KSP dependency: ```Groovy dependencies { - testImplementation 'com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.8' + testImplementation 'com.github.tschuchortdev:kotlin-compile-testing-ksp:1.4.9' } ``` diff --git a/build.gradle b/build.gradle index c728ebe7..c9fefa20 100644 --- a/build.gradle +++ b/build.gradle @@ -1,6 +1,6 @@ buildscript { - ext.kotlin_version = '1.6.21' - ext.embedded_kotlin_version = '1.7.0-RC' + ext.kotlin_version = '1.7.0' + ext.embedded_kotlin_version = '1.7.0' repositories { mavenCentral() diff --git a/core/src/main/kotlin/com/tschuchort/compiletesting/AbstractKotlinCompilation.kt b/core/src/main/kotlin/com/tschuchort/compiletesting/AbstractKotlinCompilation.kt index 24f4bf1e..534fa489 100644 --- a/core/src/main/kotlin/com/tschuchort/compiletesting/AbstractKotlinCompilation.kt +++ b/core/src/main/kotlin/com/tschuchort/compiletesting/AbstractKotlinCompilation.kt @@ -277,4 +277,5 @@ internal fun convertKotlinExitCode(code: ExitCode) = when(code) { ExitCode.INTERNAL_ERROR -> KotlinCompilation.ExitCode.INTERNAL_ERROR ExitCode.COMPILATION_ERROR -> KotlinCompilation.ExitCode.COMPILATION_ERROR ExitCode.SCRIPT_EXECUTION_ERROR -> KotlinCompilation.ExitCode.SCRIPT_EXECUTION_ERROR + ExitCode.OOM_ERROR -> throw OutOfMemoryError("Kotlin compiler ran out of memory") } diff --git a/gradle.properties b/gradle.properties index c04284c6..fa5aff14 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ kotlin.incremental=false kapt.include.compile.classpath=false GROUP=com.github.tschuchortdev -VERSION_NAME=1.4.9-SNAPSHOT +VERSION_NAME=1.4.9 POM_DESCRIPTION=A library that enables testing of Kotlin annotation processors, compiler plugins and code generation. POM_INCEPTION_YEAR=2019 POM_URL=https\://github.com/tschuchortdev/kotlin-compile-testing diff --git a/ksp/build.gradle b/ksp/build.gradle index ced1dfd5..58994e2a 100644 --- a/ksp/build.gradle +++ b/ksp/build.gradle @@ -1,5 +1,5 @@ buildscript { - ext.ksp_version='1.7.0-RC2-1.0.5' + ext.ksp_version='1.7.0-1.0.6' } dependencies {