[Gradle] Deprecate Kotlin*Options types
^KT-63419 In Progress
This commit is contained in:
committed by
Space Team
parent
4921a29aa5
commit
6e874340e9
@@ -654,10 +654,12 @@ private fun Printer.generateDeprecatedInterface(
|
||||
parentType: FqName? = null,
|
||||
) {
|
||||
val afterType = parentType?.let { " : $it" }
|
||||
// Add @Deprecated annotation back once proper migration to compilerOptions will be supported
|
||||
val modifier = """
|
||||
interface
|
||||
""".trimIndent()
|
||||
|@Deprecated(
|
||||
| "The kotlinOptions types are deprecated, please migrate to the compilerOptions types. More details are here: https://kotl.in/u1r8ln"
|
||||
|)
|
||||
|interface
|
||||
""".trimMargin()
|
||||
val deprecatedProperties = properties.filter { it.generateDeprecatedKotlinOption }
|
||||
// KotlinMultiplatformCommonOptions doesn't have any options, but it is being kept for backward compatibility
|
||||
if (deprecatedProperties.isNotEmpty() || type.asString().endsWith("KotlinMultiplatformCommonOptions")) {
|
||||
|
||||
Reference in New Issue
Block a user