What's the proper way to have various URL endpoints for dev and release in a Java application? : <p>I'm building a Java desktop application, using JavaFX, Gradle, javafx-gradle-plugin. This application connects to a server that I also build. When I compile a release version, running <code>gradle jfxNative</code>, I want it to talk to the production server; but otherwise, I want it to talk to localhost.</p>

<p>What's the proper Java/Gradle way of handling this? Some sort of compilation profile?</p>
