This repository was archived by the owner on May 3, 2025. It is now read-only.

Description
via @schusterro
Hello,
it never works with an env variable "GFE_PASSWORD", it crashes with:
No value has been specified for property 'key'.
This also doesn't work:
gradleFileEncrypt {
plainFiles.from("...")
mapping = ["..."]
passwordProvider { return System.getEnv('GFE_PASSWORD').toCharArray() }
}
It gives:
No signature of method: build_6ft8xbref3opylxfsrm35r2j.gradleFileEncrypt() is applicable for argument types: (build_6ft8xbref3opylxfsrm35r2j$_run_closure6) values: [build_6ft8xbref3opylxfsrm35r2j$_run_closure6
@46c4a9f3]
The only way I could make this plugin work is with the command line switch:
-DGFE_PASSWORD=%GFE_PASSWORD%
How can an env variable be properly used, without this workaround?
Thank you!