Skip to content

Commit

Permalink
fix(build): Do not set Implementation-Version in test JAR if already …
Browse files Browse the repository at this point in the history
…set to a valid version (#931)
  • Loading branch information
jonsie committed Jun 12, 2020
1 parent ffd45e2 commit 0b42fe5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions echo-web/echo-web.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,14 @@ test {
//assertions can be made against the version (see echo-plugins-test, for example).
jar {
manifest {
attributes(
'Implementation-Version': '1.0.0'
)
String implementationVersion = getAttributes()["Implementation-Version"]
if (implementationVersion == null
|| implementationVersion.isEmpty()
|| implementationVersion == "undefined") {
attributes(
'Implementation-Version': '1.0.0'
)
}
}
}
}

0 comments on commit 0b42fe5

Please sign in to comment.