How can I use travis-ci env variables as Gradle\'s properties?
I locally have my gradle.properties under the gradle path having:
sonatypeRepo = abcd
Below an example to define a project property, not a local variable, if it is not defined, by getting the value from the Environment.
project.ext {
if (! project.hasProperty('some_prop')) {
some_prop = System.getenv('some_prop')
}
}
I wanted a project property so I can use it also to set the PWs in my spring-boot YAML file... both locally and in CI.