Skip to content

Support Kotlin 1.8.21 #380

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ 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.8.0`
- Current `kotlin-compiler-embeddable` version: `1.8.21`

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

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
buildscript {
ext.kotlin_version = '1.8.0'
ext.embedded_kotlin_version = '1.8.0'
ext.kotlin_version = '1.8.21'
ext.embedded_kotlin_version = '1.8.21'

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package com.tschuchort.compiletesting
import org.jetbrains.kotlin.cli.common.arguments.K2JSCompilerArguments
import org.jetbrains.kotlin.cli.js.K2JSCompiler
import java.io.*
import java.nio.file.Paths
import kotlin.io.path.nameWithoutExtension

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

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

Expand Down
2 changes: 1 addition & 1 deletion ksp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
ext.ksp_version = '1.8.0-1.0.8'
ext.ksp_version = '1.8.21-1.0.11'
}

dependencies {
Expand Down