How do I set up a Java Environment Variable in a Spring Boot / Gradle / IntelliJ Environment?
<p>I'm trying to set up a configuration on my development environment to load DATABASE_URL that will also work on Heroku, with Heroku's DATABASE_URL. Unfortunately, non of the techniques I'm trying to create local environment variables seem to work in my Gradle/Boot/IntelliJ environment. Here is what I tried:</p>

<ol>
<li>Adding a <code>export DATABASE_URL=jdbc:postgresql...</code> to <code>/etc/environment</code></li>
<li>Adding <code>-DDATABASEURL=jdbc:postgresql...</code> to my gradle task VM options (with bootRun.systemProperties = System.properties)</li>
<li>My make shift answer below, that I really don't like.</li>
</ol>