Skip to content

Commit

Permalink
chore: replace deprecated kotlinOptions with compilerOptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
autonomousapps committed Dec 4, 2024
1 parent cb9ed65 commit b68caf9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// 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 @@ -14,8 +15,8 @@ java {
}

tasks.withType<KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = libs.versions.java.get()
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 b68caf9

Please sign in to comment.