[Gradle] Deprecate kotlinOptions in KotlinNativeLinkArtifactTask task

^KT-63419 Verification Pending
This commit is contained in:
Yahor Berdnikau
2024-02-23 22:35:26 +01:00
committed by Space Team
parent 48a84e5b79
commit 3511733aa7
6 changed files with 20 additions and 4 deletions
@@ -30,6 +30,9 @@ interface KotlinNativeArtifact : KotlinArtifact {
val isStatic: Boolean
val linkerOptions: List<String>
@Suppress("DEPRECATION")
@Deprecated(
"Please migrate to toolOptionsConfigure DSL. More details are here: https://kotl.in/u1r8ln"
)
val kotlinOptionsFn: KotlinCommonToolOptions.() -> Unit
val toolOptionsConfigure: KotlinCommonCompilerToolOptions.() -> Unit
val binaryOptions: Map<String, String>
@@ -85,6 +88,9 @@ interface KotlinNativeArtifactConfig : KotlinArtifactConfig {
fun modes(vararg modes: NativeBuildType)
var isStatic: Boolean
var linkerOptions: List<String>
@Deprecated(
"Please migrate to toolOptions DSL. More details are here: https://kotl.in/u1r8ln"
)
fun kotlinOptions(@Suppress("DEPRECATION") fn: Action<KotlinCommonToolOptions>)
fun toolOptions(configure: Action<KotlinCommonCompilerToolOptions>)
fun binaryOption(name: String, value: String)