For regular gradle actions, I have a gradle.properties file in my project or home which configures the proxy details (host/port etc.)
When using GradleRunner, the gradle.properties file is ignored by intention:
"Any configuration in the default Gradle user home directory (e.g. ~/.gradle/gradle.properties) is not used for test execution. The TestKit does not expose a mechanism for fine grained control of all aspects of the environment (e.g., JDK). Future versions of the TestKit will provide improved configuration options."
(from https://docs.gradle.org/current/userguide/test_kit.html#sec:controlling_the_build_environment)
Question:
How can I configure a proxy when using GradleRunner?