wttech/gradle-common-plugin

Values are not read from environment variables when using PropertyParser starting with Version 1.1.8

jtpgames opened this issue · 0 comments

Dear Developers,

starting with version 1.1.8 we cannot use the library anymore when using the PropertyParser to read environment variables. The same code, that works with version 1.1.7, returns a null value starting with version 1.1.8.

Example code:
val mavenUrl = common.prop.string("GSMavenUrl")

After looking through the commits, I found that this behavior was introduced in the commit
3953857
which uses ToUpperSnakeCase() to reformat the name of the property.

In our company, we have a different CaseStyle for our environment variables and it is not feasible for us to rename all our environment variables.

Is it possible to suppress this new behavior via a configuration value or a parameter?

Kind Regards,