fix: exclude Maven metadata files from Central upload bundle

fix: remove maven-metadata files from the generated Central bundle
fix: align uploaded archive with Sonatype Portal component layout expectations
This commit is contained in:
2026-04-16 03:42:59 +02:00
parent ad8194b7dc
commit 436deefd14

View File

@@ -131,7 +131,15 @@ tasks.register('centralBundle', Zip) {
dependsOn(tasks.named('createCentralChecksums')) dependsOn(tasks.named('createCentralChecksums'))
from(centralStagingRepositoryDirectory) from(centralStagingRepositoryDirectory) {
exclude '**/maven-metadata*.xml'
exclude '**/maven-metadata*.xml.md5'
exclude '**/maven-metadata*.xml.sha1'
exclude '**/maven-metadata*.xml.asc'
exclude '**/maven-metadata*.xml.asc.md5'
exclude '**/maven-metadata*.xml.asc.sha1'
}
destinationDirectory = centralBundleDirectory destinationDirectory = centralBundleDirectory
archiveFileName = "radixor-${project.version}-central-bundle.zip" archiveFileName = "radixor-${project.version}-central-bundle.zip"
} }