Skip to content

Commit

Permalink
fix to prefer tag before build script version for java JARs (#1234)
Browse files Browse the repository at this point in the history
* fix to prefer tag before build script version for java JARs

* PR comments
  • Loading branch information
GoMati-MU authored May 23, 2024
1 parent 2c565bd commit 7ca7215
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions java-connectors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ allprojects {
}

shadowJar {
def artifactVersion = gitTag?.trim() ? gitTag : project.version

manifest {
attributes("StreamReactor-Version": project.version,
attributes("StreamReactor-Version": artifactVersion,
"Kafka-Version": kafkaVersion,
"Created-By": "Lenses",
"Created-At": new Date().format("YYYYMMDDHHmm"),
Expand All @@ -107,7 +108,7 @@ allprojects {
)
}
configurations = [project.configurations.compileClasspath]
//archiveBaseName = "${project.name}-${project.version}-${kafkaVersion}-all"
archiveFileName = "${project.name}-${artifactVersion}-all.jar"
zip64 true

mergeServiceFiles {
Expand Down

0 comments on commit 7ca7215

Please sign in to comment.