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:
@@ -131,7 +131,15 @@ tasks.register('centralBundle', Zip) {
|
||||
|
||||
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
|
||||
archiveFileName = "radixor-${project.version}-central-bundle.zip"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user