From 713a97fa160ec71be460eec79225717841193945 Mon Sep 17 00:00:00 2001 From: dankito Date: Sun, 18 Aug 2024 18:36:11 +0200 Subject: [PATCH] Suppress compiler warning: [EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING] 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. --- BankingClientModel/build.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/BankingClientModel/build.gradle.kts b/BankingClientModel/build.gradle.kts index cbd36ac8..1124dbd9 100644 --- a/BankingClientModel/build.gradle.kts +++ b/BankingClientModel/build.gradle.kts @@ -1,5 +1,6 @@ @file:OptIn(ExperimentalWasmDsl::class) +import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi import org.jetbrains.kotlin.gradle.targets.js.dsl.ExperimentalWasmDsl plugins { @@ -12,6 +13,13 @@ plugins { kotlin { jvmToolchain(8) + @OptIn(ExperimentalKotlinGradlePluginApi::class) + compilerOptions { + // suppresses compiler warning: [EXPECT_ACTUAL_CLASSIFIERS_ARE_IN_BETA_WARNING] 'expect'/'actual' classes (including interfaces, objects, annotations, enums, and 'actual' typealiases) are in Beta. + freeCompilerArgs.add("-Xexpect-actual-classes") + } + + jvm { withJava()