[Gradle] Deprecate Kotlin*Options types

^KT-63419 In Progress
This commit is contained in:
Yahor Berdnikau
2024-02-23 19:57:34 +01:00
committed by Space Team
parent 4921a29aa5
commit 6e874340e9
46 changed files with 112 additions and 64 deletions
@@ -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")) {