Skip to content

Commit

Permalink
chore: simplify KotlinCompile configuration
Browse files Browse the repository at this point in the history
Reason: the kotlin-gradle-plugin respects JvmToolchains
  • Loading branch information
patrick-dedication committed Dec 15, 2024
1 parent 2ffa7c3 commit baf9e58
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// Copyright (c) 2024. Tony Robalik.
// SPDX-License-Identifier: Apache-2.0
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
Expand All @@ -16,7 +15,6 @@ java {

tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget = JvmTarget.fromTarget(libs.versions.java.get())
freeCompilerArgs = listOf("-Xinline-classes", "-opt-in=kotlin.RequiresOptIn", "-Xsam-conversions=class")
}
}
Expand Down

0 comments on commit baf9e58

Please sign in to comment.