From fa8ff30da0b34914cae1fdfc2e15a555aa291795 Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Tue, 17 Dec 2024 22:39:08 -0800 Subject: [PATCH] Update shadow plugin configuration for latest version --- src/main/java/org/openrewrite/gradle/RewriteShadowPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openrewrite/gradle/RewriteShadowPlugin.java b/src/main/java/org/openrewrite/gradle/RewriteShadowPlugin.java index 519fa0b..5d8f5f7 100644 --- a/src/main/java/org/openrewrite/gradle/RewriteShadowPlugin.java +++ b/src/main/java/org/openrewrite/gradle/RewriteShadowPlugin.java @@ -35,7 +35,7 @@ public void apply(Project project) { task.setEnabled(false)); project.getTasks().withType(ShadowJar.class, task -> { - task.setConfigurations(singletonList(project.getConfigurations().getByName("compileClasspath"))); + task.getConfigurations().set(singletonList(project.getConfigurations().getByName("compileClasspath"))); task.getArchiveClassifier().set((String) null); }); }