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); }); }