Skip to content

Commit

Permalink
build: correct grgit null reference in git-less environments, close #345
Browse files Browse the repository at this point in the history
 (#347)

Issue Summary:
when sources are downloaded (not through git) the build fails because of a null reference.
Fix:
replace null reference with empty string

Co-authored-by: codetoad <[email protected]>
  • Loading branch information
goatfanboi23 and codetoad committed Jul 14, 2024
1 parent 7b35c47 commit 0dee2e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ allprojects {
}

processResources {
def tokenMap = rootProject.ext.properties
tokenMap.merge("grgit",'',(s, s2) -> s)
filesMatching(['**/*.json', '**/*.yml']) {
filter ReplaceTokens as Class, beginToken: '${', endToken: '}',
tokens: rootProject.ext.properties
tokens: tokenMap
}
}
}
Expand Down

0 comments on commit 0dee2e8

Please sign in to comment.