improve gradle build on JDK8
- skip adding MaxPermSize jvm arg