build: correct grgit null reference in git-less environments, close #345 (#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 <softwareenginer@pm.me>
feat/data-edit-commands
Code Toad 4 months ago committed by GitHub
parent 7b35c47315
commit 0dee2e8319
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save