Hantsy Bai
11/28/2024, 3:46 AM--debug
prarameter when building the project, and got the following build error>
11-28T11:39:13.093+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-11-28T11:39:13.093+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
2024-11-28T11:39:13.094+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
2024-11-28T11:39:13.094+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
2024-11-28T11:39:13.094+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':compileKotlin'.
2024-11-28T11:39:13.094+0800 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > 'void org.jetbrains.kotlin.cli.common.arguments.CommonToolArguments.setExtraWarnings(boolean)'
ephemient
11/28/2024, 4:51 AMephemient
11/28/2024, 4:51 AMephemient
11/28/2024, 4:52 AMHantsy Bai
11/28/2024, 4:57 AMjvm
, spring
, ksp
plugins to align with Kotlin 2.1.0
, and no changes to the Kotlin dsl config:
kotlin {
compilerOptions {
apiVersion.set(KotlinVersion.KOTLIN_2_0)
languageVersion.set(KotlinVersion.KOTLIN_2_0)
jvmTarget.set(JvmTarget.fromTarget(javaVersion.toString()))
freeCompilerArgs.addAll(
"-Xjsr305=strict",
"-opt-in=kotlin.RequiresOptIn",
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
)
}
}
But from the compatibility page you provided, there is no options for Kotlin 2.1.ephemient
11/28/2024, 4:58 AMkotlin-dsl
issueephemient
11/28/2024, 5:00 AMHantsy Bai
11/28/2024, 5:00 AMthe build time
.ephemient
11/28/2024, 5:02 AMkotlin-dsl
somewhereephemient
11/28/2024, 5:02 AMephemient
11/28/2024, 5:03 AMephemient
11/28/2024, 5:03 AMHantsy Bai
11/28/2024, 5:03 AMHantsy Bai
11/28/2024, 5:05 AMHantsy Bai
11/28/2024, 5:07 AM--scan
report, still can not find the root cause.
https://kotlinlang.slack.com/archives/C7L3JB43G/p1732768515988379Tapchicoma
11/28/2024, 9:30 AMTapchicoma
11/28/2024, 9:31 AMkotlin-compiler-emebeddable
version as 2.1.0
Tapchicoma
11/28/2024, 9:33 AMKotlinter
should not bring kotlin-compiler-embeddable
into build classpathUlf Andersson
02/12/2025, 12:02 PM