From 50327e05e61399435f93a32a7133c12f17fe544d Mon Sep 17 00:00:00 2001 From: Thomas Vos Date: Tue, 8 Feb 2022 08:46:01 +0100 Subject: [PATCH] Fix fromFiles argument not lazy (#1797) --- .../desktop/application/internal/configureApplication.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureApplication.kt b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureApplication.kt index a8c2bde19c..8300e7334e 100644 --- a/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureApplication.kt +++ b/gradle-plugins/compose/src/main/kotlin/org/jetbrains/compose/desktop/application/internal/configureApplication.kt @@ -231,7 +231,7 @@ internal fun AbstractJPackageTask.configurePackagingTask( javaHome.set(provider { app.javaHomeOrDefault() }) launcherMainJar.set(app.mainJar.orNull) - app._fromFiles.forEach { files.from(it) } + files.from(app._fromFiles) dependsOn(*app._dependenciesTaskNames.toTypedArray()) app._configurationSource?.let { configSource ->