Skip to content

Commit 325f697

Browse files
committed
skip test on JRE 8
1 parent cd4e7fd commit 325f697

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plugin-gradle/src/test/java/com/diffplug/gradle/spotless/KotlinGradleExtensionTest.java

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import org.gradle.testkit.runner.BuildResult;
2323
import org.junit.Test;
2424

25+
import com.diffplug.spotless.JreVersion;
26+
2527
public class KotlinGradleExtensionTest extends GradleIntegrationTest {
2628
@Test
2729
public void integration() throws IOException {
@@ -111,6 +113,10 @@ public void indentStep() throws IOException {
111113

112114
@Test
113115
public void integration_ktfmt() throws IOException {
116+
if (JreVersion.thisVm() == JreVersion._8) {
117+
// ktfmt's dependency, google-java-format 1.8 requires a minimum of JRE 11+.
118+
return;
119+
}
114120
setFile("build.gradle").toLines(
115121
"plugins {",
116122
" id 'nebula.kotlin' version '1.0.6'",

0 commit comments

Comments
 (0)