From c70ec4d259d963df652d1d83fedd6c4dcec75ae2 Mon Sep 17 00:00:00 2001 From: dejan2609 Date: Tue, 3 Dec 2024 14:06:09 +0100 Subject: [PATCH] KAFKA-18142 switch Kafka's Gradle build shadow plugin to `com.gradleup.shadow` (and upgrade plugin version) details: * `io.github.goooler.shadow` plugin was deprecated in favor of `com.gradleup.shadow`: https://github.com/Goooler/shadow?tab=readme-ov-file#gradle-shadow * release notes for version upgrade (8.1.3 -->> 8.3.5): https://gradleup.com/shadow/changes/#v8-3-5-2024-11-03 --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 338bc9aa0cf4..f231913772ea 100644 --- a/build.gradle +++ b/build.gradle @@ -41,7 +41,7 @@ plugins { id "com.github.spotbugs" version '6.0.25' apply false id 'org.scoverage' version '8.0.3' apply false - id 'io.github.goooler.shadow' version '8.1.3' apply false + id 'com.gradleup.shadow' version '8.3.5' apply false id 'com.diffplug.spotless' version "6.25.0" } @@ -348,11 +348,11 @@ subprojects { if (!shouldPublishWithShadow) { from components.java } else { - apply plugin: 'io.github.goooler.shadow' + apply plugin: 'com.gradleup.shadow' project.shadow.component(mavenJava) // Fix for avoiding inclusion of runtime dependencies marked as 'shadow' in MANIFEST Class-Path. - // https://github.com/johnrengelman/shadow/issues/324 + // https://github.com/GradleUp/shadow/issues/324 afterEvaluate { pom.withXml { xml -> if (xml.asNode().get('dependencies') == null) { @@ -3297,7 +3297,7 @@ project(':streams:upgrade-system-tests-39') { project(':jmh-benchmarks') { - apply plugin: 'io.github.goooler.shadow' + apply plugin: 'com.gradleup.shadow' shadowJar { archiveBaseName = 'kafka-jmh-benchmarks'