[Gradle] Deprecate kotlinOptions DSL in KotlinCompilation
^KT-63419 In Progress
This commit is contained in:
committed by
Space Team
parent
2e3a209d0d
commit
433bec3700
+1
@@ -169,6 +169,7 @@ internal class KotlinCompilationImpl constructor(
|
||||
|
||||
//region CompilerOptions & KotlinOptions
|
||||
|
||||
@Suppress("OVERRIDE_DEPRECATION")
|
||||
override val kotlinOptions: KotlinCommonOptions
|
||||
get() = params.kotlinOptions
|
||||
|
||||
|
||||
+1
@@ -94,6 +94,7 @@ internal fun filterModuleName(moduleName: String): String =
|
||||
moduleName.replace(invalidModuleNameCharactersRegex, "_")
|
||||
|
||||
internal inline fun <reified T : KotlinCommonOptions> InternalKotlinCompilation<*>.castKotlinOptionsType(): InternalKotlinCompilation<T> {
|
||||
@Suppress("DEPRECATION")
|
||||
this.kotlinOptions as T
|
||||
@Suppress("UNCHECKED_CAST")
|
||||
return this as InternalKotlinCompilation<T>
|
||||
|
||||
Reference in New Issue
Block a user