From 43297df4091a42a52f5af4284e140b77fc8231ef Mon Sep 17 00:00:00 2001 From: Berstanio Date: Wed, 16 Oct 2024 14:51:41 +0200 Subject: [PATCH] fix: ReFix "artifacts" declaration of runtime --- gdx-jnigen-runtime/build.gradle | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/gdx-jnigen-runtime/build.gradle b/gdx-jnigen-runtime/build.gradle index ccfec565..e2e2f1fc 100644 --- a/gdx-jnigen-runtime/build.gradle +++ b/gdx-jnigen-runtime/build.gradle @@ -222,17 +222,12 @@ tasks.forEach { artifacts { - jnigenPackageAllAndroid.getOutputs().getFiles().each { - println "Adding as artifact ${it.getName()}" - archives it - } - jnigenPackageAllIOS.getOutputs().getFiles().each { - println "Adding as artifact ${it.getName()}" - archives it - } - jnigenPackageAllDesktop.getOutputs().getFiles().each { - println "Adding as artifact ${it.getName()}" - archives it + [jnigenPackageAllAndroid, jnigenPackageAllIOS, jnigenPackageAllDesktop].forEach {packageTask -> + packageTask.getOutputs().getFiles().each { file -> + archives(file) { + builtBy(packageTask) + } + } } }