From d5e4c1db5026c23df00ed4c368600619b035d832 Mon Sep 17 00:00:00 2001 From: Bogdan Mukvich Date: Wed, 20 Dec 2023 13:53:31 +0100 Subject: [PATCH] [K/N] Filter archives by extension for artifact publication ^KTI-1479 --- kotlin-native/build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/kotlin-native/build.gradle b/kotlin-native/build.gradle index 538a7e0b29d..eef49bf3515 100644 --- a/kotlin-native/build.gradle +++ b/kotlin-native/build.gradle @@ -764,7 +764,11 @@ publishing { if (publishBundlesFromLocation) { def bundleArchives = bundlesLocationFiles - .findAll { it.name.startsWith("kotlin-native") && !it.name.contains("prebuilt") && !it.name.endsWith("spdx.json") } + .findAll { + it.name.startsWith("kotlin-native") + && !it.name.contains("prebuilt") + && (it.name.endsWith("zip") || it.name.endsWith("tar.gz")) + } def bundleConfigs = createConfigurations(bundleArchives) bundleConfigs.forEach { target, file -> def archiveExtension = (target.family == Family.MINGW) ? 'zip' : 'tar.gz' @@ -798,7 +802,10 @@ publishing { if (publishBundlesFromLocation) { def prebuiltBundleArchives = bundlesLocationFiles - .findAll { it.name.startsWith("kotlin-native-prebuilt") && !it.name.endsWith("spdx.json") } + .findAll { + it.name.startsWith("kotlin-native-prebuilt") + && (it.name.endsWith("zip") || it.name.endsWith("tar.gz")) + } def bundlePrebuiltConfigs = createConfigurations(prebuiltBundleArchives) bundlePrebuiltConfigs.forEach { target, file -> def archiveExtension = (target.family == Family.MINGW) ? 'zip' : 'tar.gz'