Skip to content

Instantly share code, notes, and snippets.

@rbaul
Created November 4, 2021 07:00
Show Gist options
  • Save rbaul/4fbc5d80787b4bfad0907a63741ceee8 to your computer and use it in GitHub Desktop.
Save rbaul/4fbc5d80787b4bfad0907a63741ceee8 to your computer and use it in GitHub Desktop.
Configure gradle properties from environment variable
Instead of environment variables, like myProperty, please use Gradle properties
they can be specified in the gradle.properties file, if not secret.
For more vulnerable data or properties that may change when running tasks,
you can set such properties using environment variables prefixed with
ORG_GRADLE_PROJECT_
example: ORG_GRADLE_PROJECT_myProperty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment