We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
named
1 parent f9e301f commit 0cae38eCopy full SHA for 0cae38e
src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt
@@ -109,8 +109,9 @@ public abstract class ShadowJavaPlugin @Inject constructor(
109
// Only proceed if the removal is successful.
110
if (!api.dependencies.remove(gradleApi)) return@named
111
// Compile only gradleApi() to make sure the plugin can compile against Gradle API.
112
- configurations.getByName(JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME)
113
- .dependencies.add(dependencies.gradleApi())
+ configurations.named(JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME) { co ->
+ co.dependencies.add(dependencies.gradleApi())
114
+ }
115
}
116
117
0 commit comments