From 5eb9a405ec3df91c5ef7fe4ecc8c54d209791c7b Mon Sep 17 00:00:00 2001 From: Goooler Date: Sun, 25 Oct 2026 15:33:23 +0800 Subject: [PATCH] Eliminate redundant apply for fileCollection helper --- .../jengelman/gradle/plugins/shadow/internal/GradleCompat.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/GradleCompat.kt b/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/GradleCompat.kt index e3092fe30..f131cf7f6 100644 --- a/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/GradleCompat.kt +++ b/src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/internal/GradleCompat.kt @@ -130,7 +130,7 @@ internal inline fun ObjectFactory.mapProperty( } internal inline fun ObjectFactory.fileCollection(path: () -> Any): ConfigurableFileCollection = - fileCollection().apply { @Suppress("UnstableApiUsage") convention(path()) } + @Suppress("UnstableApiUsage") fileCollection().convention(path()) @Suppress("UNCHECKED_CAST") internal inline fun ObjectFactory.fileProperty(path: () -> Any): RegularFileProperty =