File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
plugin-development/src/main/java/org/spongepowered/gradle/plugin Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,15 @@ public void execute(final Task a) {
279279
280280 this .project .afterEvaluate (p -> {
281281 final TaskProvider <AbstractArchiveTask > archiveTask ;
282- if (Constants .Plugins .SHADOW_PLUGIN_IDS .stream ().anyMatch (id -> p .getPlugins ().hasPlugin (id ))) {
282+
283+ boolean hasShadow = false ;
284+ for (String id : Constants .Plugins .SHADOW_PLUGIN_IDS ) {
285+ if (p .getPlugins ().hasPlugin (id )) {
286+ hasShadow = true ;
287+ break ;
288+ }
289+ }
290+ if (hasShadow ) {
283291 archiveTask = p .getTasks ().named (Constants .Plugins .SHADOW_JAR_TASK_NAME , AbstractArchiveTask .class );
284292 } else {
285293 archiveTask = p .getTasks ().named (JavaPlugin .JAR_TASK_NAME , AbstractArchiveTask .class );
You can’t perform that action at this time.
0 commit comments