Skip to content

Commit

Permalink
Merge pull request #35 from project-tsurugi/fix-distribution-name
Browse files Browse the repository at this point in the history
build: fix distribution archive name.
  • Loading branch information
akirakw authored Dec 26, 2023
2 parents b3cdcd0 + 366e4d3 commit 5fd30a6
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 20 deletions.
5 changes: 5 additions & 0 deletions buildSrc/src/main/groovy/tanzawa.java-conventions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,8 @@ task writeVersion(type: WriteProperties) {

sourceSets.main.output.dir("${project.buildDir}/generated/version")
processResources.dependsOn writeVersion

tasks.withType(Tar) { task ->
task.archiveExtension = 'tar.gz'
task.compression = Compression.GZIP
}
20 changes: 10 additions & 10 deletions modules/tgdump/cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ dependencies {
testImplementation 'com.fasterxml.jackson.core:jackson-databind:2.13.3'
}

distributions {
main {
distributionBaseName = 'tgdump'
}
shadow {
distributionBaseName = 'tgdump'
distributionClassifier = 'shadow'
}
}

application {
applicationName = 'tgdump'
mainClass = 'com.tsurugidb.tools.tgdump.cli.Main'
Expand All @@ -39,16 +49,6 @@ shadowJar {
mergeServiceFiles()
}

distZip {
archiveFileName = "tgdump.zip"
}

distTar {
archiveFileName = "tgdump.tar.gz"
archiveExtension = 'tar.gz'
compression = Compression.GZIP
}

test {
systemProperty 'org.slf4j.simpleLogger.defaultLogLevel', findProperty('test.logLevel') ?: 'debug'
}
20 changes: 10 additions & 10 deletions modules/tgsql/cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ dependencies {
testImplementation 'org.slf4j:slf4j-simple:1.7.36'
}

distributions {
main {
distributionBaseName = 'tgsql'
}
shadow {
distributionBaseName = 'tgsql'
distributionClassifier = 'shadow'
}
}

application {
applicationName = 'tgsql'
mainClass = 'com.tsurugidb.console.cli.Main'
Expand All @@ -40,13 +50,3 @@ shadowJar {
archiveClassifier = 'all'
mergeServiceFiles()
}

distZip {
archiveFileName = "tgsql.zip"
}

distTar {
archiveFileName = "tgsql.tar.gz"
archiveExtension = 'tar.gz'
compression = Compression.GZIP
}

0 comments on commit 5fd30a6

Please sign in to comment.