Skip to content

Commit 7dfdf74

Browse files
committed
Deprecated level to WARNING
1 parent fda2fdd commit 7dfdf74

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

plugins/suspend-transform-plugin-gradle/src/main/kotlin/love/forte/plugin/suspendtrans/gradle/SuspendTransformGradleExtension.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ const val USE_NEW_EXTENSION = "Use the new extension " +
1414
replaceWith = ReplaceWith(
1515
"SuspendTransformPluginExtension",
1616
"love.forte.plugin.suspendtrans.gradle.SuspendTransformPluginExtension"
17-
),
18-
level = DeprecationLevel.ERROR
17+
)
1918
)
2019
open class SuspendTransformGradleExtension : love.forte.plugin.suspendtrans.SuspendTransformConfiguration() {
2120
@Deprecated("Please use the " +

plugins/suspend-transform-plugin-gradle/src/main/kotlin/love/forte/plugin/suspendtrans/gradle/SuspendTransformGradlePlugin.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ open class SuspendTransformGradlePlugin : KotlinCompilerPluginSupportPlugin {
3535
}
3636

3737
override fun apply(target: Project) {
38-
@Suppress("DEPRECATION_ERROR")
38+
@Suppress("DEPRECATION")
3939
target.extensions.create(
4040
EXTENSION_NAME,
4141
SuspendTransformGradleExtension::class.java
@@ -81,7 +81,7 @@ open class SuspendTransformGradlePlugin : KotlinCompilerPluginSupportPlugin {
8181
private fun resolveSubpluginOptions(target: KotlinTarget, project: Project): List<SubpluginOption> {
8282
val extension = project.extensions.getByType(SuspendTransformPluginExtension::class.java)
8383

84-
@Suppress("DEPRECATION_ERROR") val oldExtension =
84+
@Suppress("DEPRECATION") val oldExtension =
8585
project.extensions.getByType(SuspendTransformGradleExtension::class.java)
8686
@Suppress("DEPRECATION")
8787
if (oldExtension.enabled || oldExtension.transformers.isNotEmpty()) {

0 commit comments

Comments
 (0)