How to use Infisical to inject environment variables with Gradle
run
command. The basic structure is:
generateFile
task in Gradle:
System.getenv('VARIABLE_NAME')
.
build.gradle
, you might have:
build.gradle
can then adjust the database URL accordingly:
build.gradle
: