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 ******************** */