I believe this build.gradle file will now determine what the build target platform is and auto-set the JVM args for you.  I still need to test this on my mac.