Gradle builds fail with JDK9 if MaxPermSize is used

Gradle (v2.13) is failing to launch with JDK9(1.9.0ea91) if MaxPermSize option is passed as a jvm arg. It works if -Dorg.gradle.jvmargs=-XX:+IgnoreUnrecognizedVMOptions option is passed to override the MaxPermSize setting Stream closed at java.lang.ProcessBuilder$NullOutputStream.write( at at at at at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute( at org.gradle.internal.concurrent.StoppableExecutorImpl$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at