gradle-git-properties
gradle-git-properties copied to clipboard
fix: make the unit tests work under Windows
Windows uses the \ backslash character as the directory separator, which interferes with the standard Groovy escaping.
How about using / as the separator? It should work with both Windows and *nix
PR modified to adopt a safer and more generic approach; instead, we use a system property to pass a JSON-encapsulated value around (we rely on Groovy JsonOutput/JsonSlurper):
- no need to worry about the Groovy parser/compiler escaping rules (
\was only one special case among others), value is now a runtime value - no need to transform values, because the runtime Gradle API knows how to handle native paths