From 364d5005be5511a82e17f6df07be4955a2a7fc01 Mon Sep 17 00:00:00 2001 From: David Sondermann Date: Tue, 3 Dec 2024 14:30:59 +0000 Subject: [PATCH] Fix shadow plugin configuration --- build.gradle.kts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 490f55d91..5fe82547c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -229,6 +229,10 @@ tasks.shadowJar { minimize() } +val javaComponent = components["java"] as AdhocComponentWithVariants +javaComponent.withVariantsFromConfiguration(configurations.shadowRuntimeElements.get()) { + skip() +} /* ******************** publishing ******************** */