Philip W
12/16/2025, 8:59 AMNiels Doucet
12/16/2025, 9:25 AMdoFirst action on your test task that reads the file and configures the env variables?Adam
12/16/2025, 5:51 PMgetJvmArgumentProviders() system properties can be passed in lazily (using listOf("-DpropName=propValue").
https://github.com/gradle/gradle/blob/v9.2.1/subprojects/core-api/src/main/java/org/gradle/process/JavaForkOptions.java#L168-L175Laura Kassovic
12/16/2025, 9:35 PMval_name = providers.environmentVariable("ENV_VAL_NAME")jvmArgumentProviders is likely the cleanest way if your app can use System Properties.