[MPP] Deprecate preset APIs
^KT-59321
This commit is contained in:
committed by
Space Team
parent
a580d4e5aa
commit
969deb639c
+5
@@ -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 {
|
||||
}
|
||||
|
||||
|
||||
+17
@@ -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
|
||||
Reference in New Issue
Block a user