Set up environment variables for Gradle Runner and JUnit tests on Intellij Idea
<p>If you use Maven or JUnit it's easy to setup the environment variables used when you run your test classes. </p>

<p><a href="https://i.stack.imgur.com/BZuvo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BZuvo.png" alt="enter image description here"></a></p>

<p>But with Gradle there is not option available. I want to avoid to configure these environment variables where I use to program, because this is not handy once I work with several apps that sometimes have similar env variable names.</p>

<p><a href="https://i.stack.imgur.com/1i9N3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1i9N3.png" alt="enter image description here"></a></p>

<p>Is this a Gradle plugin problem? How are you solving this?</p>