[K/N] Filter archives by extension for artifact publication
^KTI-1479
This commit is contained in:
committed by
Space Team
parent
4a04a2fc4b
commit
d5e4c1db50
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user