[MPP] Deprecate preset APIs

^KT-59321
This commit is contained in:
Timofey Solonin
2023-07-21 10:19:53 +02:00
committed by Space Team
parent a580d4e5aa
commit 969deb639c
32 changed files with 338 additions and 39 deletions
@@ -1,3 +1,8 @@
public final class org/jetbrains/kotlin/gradle/DeprecatedTargetPresetApiKt {
public static final field PRESETS_API_IS_DEPRECATED_MESSAGE Ljava/lang/String;
public static final field PRESETS_DEPRECATION_MESSAGE_SUFFIX Ljava/lang/String;
}
public abstract interface annotation class org/jetbrains/kotlin/gradle/ExperimentalKotlinGradlePluginApi : java/lang/annotation/Annotation {
}
@@ -0,0 +1,17 @@
/*
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle
const val PRESETS_DEPRECATION_MESSAGE_SUFFIX =
"API is deprecated and will be removed in future releases. Learn how to configure targets at: https://kotl.in/target-configuration"
const val PRESETS_API_IS_DEPRECATED_MESSAGE = "The presets $PRESETS_DEPRECATION_MESSAGE_SUFFIX"
@RequiresOptIn(
message = PRESETS_API_IS_DEPRECATED_MESSAGE,
level = RequiresOptIn.Level.WARNING
)
@InternalKotlinGradlePluginApi
annotation class DeprecatedTargetPresetApi