Specifying environment variables for GradleRunner

I’m interested in running a test with GradleRunner such that the resulting gradle process has an empty PATH. I’ve tried passing “-DPATH=’’” as an argument to withArguments(), but no dice there. I see the withJvmArguments methods on DefaultGradleRunner, and they look so inviting :slight_smile: As in, if they were available on the GradleRunner interface, it seems like they might be just the thing. I’m happy to provide a patch to gradle if so. I’m curious if there’s an existing/better way, and if not whether this is a good way forward.

Thanks much.