FINERACT-2335: don't rename release tarballs

Release tarballs are currently renamed (without changing the contents): apache-fineract-src-1.12.1.tar.gz becomes apache-fineract-1.12.1-src.tar.gz . The former matches the exploded directory name, the latter does not. The difference is subtle but meaningful... I strongly prefer the former because it's less surprising / more common, and easier to work with from scripts.

There's no functional difference, this should only impact aesthetics.

I did also shorten `binary` to `bin` so release artifact name lengths match.
This commit is contained in:
Adam Monsen
2025-07-28 11:04:23 -07:00
parent ab8bb930ec
commit e090da2a01
5 changed files with 15 additions and 25 deletions
+1 -11
View File
@@ -105,7 +105,7 @@ tasks.withType(Tar) {
distributions {
binary {
distributionBaseName = 'apache-fineract-binary'
distributionBaseName = 'apache-fineract-bin'
contents {
// Track inputs explicitly for binary distribution
filesMatching('**/*.jar') {
@@ -170,21 +170,11 @@ tasks.named('binaryDistTar') {
':fineract-provider:build', ':fineract-doc:doc',
':fineract-client:javadocJar', ':fineract-client:sourcesJar',
':fineract-avro-schemas:javadocJar', ':fineract-avro-schemas:sourcesJar')
doLast {
file("${buildDir}/distributions/apache-fineract-binary-${version}.tar.gz")
.renameTo("${buildDir}/distributions/apache-fineract-${version}-binary.tar.gz")
}
}
tasks.named('srcDistTar') {
description = 'Assembles the source distribution as a tar archive'
outputs.cacheIf { true }
doLast {
file("${buildDir}/distributions/apache-fineract-src-${version}.tar.gz")
.renameTo("${buildDir}/distributions/apache-fineract-${version}-src.tar.gz")
}
}
// Disable zip distributions as they're not needed