Skip to content

Commit 4b8a084

Browse files
committed
Support Kotlin 1.8.21
1 parent 82ec542 commit 4b8a084

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Kotlin-Compile-Testing is compatible with all _local_ compiler versions. It does
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

112112

113-
- Current `kotlin-compiler-embeddable` version: `1.8.0`
113+
- Current `kotlin-compiler-embeddable` version: `1.8.21`
114114

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

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
buildscript {
2-
ext.kotlin_version = '1.8.0'
3-
ext.embedded_kotlin_version = '1.8.0'
2+
ext.kotlin_version = '1.8.21'
3+
ext.embedded_kotlin_version = '1.8.21'
44

55
repositories {
66
mavenCentral()

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ package com.tschuchort.compiletesting
33
import org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments
44
import org.jetbrains.kotlin.cli.js.K2JSCompiler
55
import java.io.*
6+
import java.nio.file.Paths
7+
import kotlin.io.path.nameWithoutExtension
68

79
@Suppress("MemberVisibilityCanBePrivate")
810
class KotlinJsCompilation : AbstractKotlinCompilation<K2JSCompilerArguments>() {
@@ -79,7 +81,8 @@ class KotlinJsCompilation : AbstractKotlinCompilation<K2JSCompilerArguments>() {
7981
args.noStdlib = true
8082

8183
args.moduleKind = "commonjs"
82-
args.outputFile = File(outputDir, outputFileName).absolutePath
84+
args.outputDir = outputDir.absolutePath // -ir-output-dir
85+
args.moduleName = Paths.get(outputFileName).nameWithoutExtension // -ir-output-name
8386
args.sourceMapBaseDirs = jsClasspath().joinToString(separator = File.pathSeparator)
8487
args.libraries = listOfNotNull(kotlinStdLibJsJar).joinToString(separator = ":")
8588

ksp/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
buildscript {
2-
ext.ksp_version = '1.8.0-1.0.8'
2+
ext.ksp_version = '1.8.21-1.0.11'
33
}
44

55
dependencies {

0 commit comments

Comments
 (0)