From 0519b69a9b31c22cdb7ae9c77fa80b9c2abf3498 Mon Sep 17 00:00:00 2001 From: DaiYuANg Date: Tue, 5 Mar 2024 22:00:07 +0800 Subject: [PATCH] fix: prepare merged jar dir task configure error in multi module project --- src/main/groovy/org/beryx/jlink/PrepareMergedJarsDirTask.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/org/beryx/jlink/PrepareMergedJarsDirTask.groovy b/src/main/groovy/org/beryx/jlink/PrepareMergedJarsDirTask.groovy index d44d2751..e30822a6 100644 --- a/src/main/groovy/org/beryx/jlink/PrepareMergedJarsDirTask.groovy +++ b/src/main/groovy/org/beryx/jlink/PrepareMergedJarsDirTask.groovy @@ -65,7 +65,7 @@ class PrepareMergedJarsDirTask extends BaseTask { PrepareMergedJarsDirTask() { description = 'Merges all non-modularized jars into a single module' - project.afterEvaluate { + project.getGradle().projectsEvaluated { def projects = Util.getAllDependentProjects(project) + project def jarTasks = projects*.getTasksByName('jar', true).flatten() as Task[] dependsOn(jarTasks)