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'