void (@NotNull String gradleVersion) { assumeTrue("Gradle [" + gradleVersion + "] cannot be execution on Java [" + JavaVersion.current() + "]", GradleJvmSupportMatrix.isSupported(GradleVersion.version(gradleVersion), JavaVersion.current())); if (GradleVersion.version(gradleVersion).getBaseVersion().compareTo(GradleVersion.version("4.8")) < 0) { assumeThat(JavaVersion.current().feature, new CustomMatcher<Integer>("Java version older than 9") { @Override public boolean matches(Object item) { return item instanceof Integer && ((Integer)item).compareTo(9) < 0; } }); } }