From b4b8153f399bcfa20efa6381305f1240fcb3946a Mon Sep 17 00:00:00 2001 From: Patrick Neulichedl Date: Sun, 1 Dec 2024 13:18:27 +0100 Subject: [PATCH 1/2] Don't extend configuration testCompile from shaded * using testCompile has been discouraged since Gradle 3.4 * made sure dependencies on all other configurations are unchanged * no need to change it to testImplementation since testCompileClasspath and testRuntimeClasspath extend from implementation --- gradle/shading.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/shading.gradle b/gradle/shading.gradle index 10ceb5086a4..5aca095e4cb 100644 --- a/gradle/shading.gradle +++ b/gradle/shading.gradle @@ -4,7 +4,7 @@ apply plugin: 'com.gradleup.shadow' configurations { shaded - [apiElements, implementation, compileOnly, testCompile]*.extendsFrom shaded + [apiElements, implementation, compileOnly]*.extendsFrom shaded } configurations.api.canBeResolved = true From 4d229bedb41c887cb8f3a111f708a4d80f62787e Mon Sep 17 00:00:00 2001 From: Patrick Neulichedl Date: Sun, 1 Dec 2024 13:23:20 +0100 Subject: [PATCH 2/2] Don't extend configuration compileOnly from shaded * compileClasspath already extends from implementation --- gradle/shading.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/shading.gradle b/gradle/shading.gradle index 5aca095e4cb..88f25cc3f22 100644 --- a/gradle/shading.gradle +++ b/gradle/shading.gradle @@ -4,7 +4,7 @@ apply plugin: 'com.gradleup.shadow' configurations { shaded - [apiElements, implementation, compileOnly]*.extendsFrom shaded + [apiElements, implementation]*.extendsFrom shaded } configurations.api.canBeResolved = true