Skip to content

Commit 133612b

Browse files
committed
Fix git hash lookup in build
1 parent 52fa2f1 commit 133612b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java-client/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ java {
3939
tasks.withType<ProcessResources> {
4040
expand(
4141
"version" to version,
42-
"git_revision" to (rootProject.extra.get("gitHashFull") ?: "unknown")
42+
"git_revision" to (if (rootProject.extra.has("gitHashFull")) rootProject.extra["gitHashFull"] else "unknown")
4343
)
4444
}
4545

0 commit comments

Comments
 (0)