From c4252860c07b8a71a3362cdc5b163e732c6ad6c6 Mon Sep 17 00:00:00 2001 From: Goooler Date: Tue, 17 Sep 2024 20:31:15 +0800 Subject: [PATCH] Still mark Deprecated --- src/docs/changes/README.md | 2 +- .../jengelman/gradle/plugins/shadow/ShadowExtension.groovy | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/changes/README.md b/src/docs/changes/README.md index 4e0c062f7..e9b960b7e 100644 --- a/src/docs/changes/README.md +++ b/src/docs/changes/README.md @@ -7,7 +7,7 @@ **Changed** -- `ShadowExtension.component` has been deprecated, now you can use `component.shadow` instead. +- `ShadowExtension` has been deprecated, now you can use `component.shadow` instead. **Fixed** diff --git a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowExtension.groovy b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowExtension.groovy index 48157f3ba..53fc8b38d 100644 --- a/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowExtension.groovy +++ b/src/main/groovy/com/github/jengelman/gradle/plugins/shadow/ShadowExtension.groovy @@ -4,6 +4,7 @@ import org.gradle.api.Project import org.gradle.api.component.SoftwareComponentContainer import org.gradle.api.publish.maven.MavenPublication +@Deprecated class ShadowExtension { private final SoftwareComponentContainer components @@ -12,8 +13,7 @@ class ShadowExtension { } /** - * @param publication - * @deprecated configure publication using component.shadow directly + * @deprecated configure publication using component.shadow directly. */ @Deprecated void component(MavenPublication publication) {