Don't use MaxPermSize for Java9

Conflicts:
	gradle/test.gradle