Skip to content

Commit

Permalink
skip test on JRE 8
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewparmet committed May 28, 2020
1 parent cd4e7fd commit 325f697
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
import org.gradle.testkit.runner.BuildResult;
import org.junit.Test;

import com.diffplug.spotless.JreVersion;

public class KotlinGradleExtensionTest extends GradleIntegrationTest {
@Test
public void integration() throws IOException {
Expand Down Expand Up @@ -111,6 +113,10 @@ public void indentStep() throws IOException {

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

0 comments on commit 325f697

Please sign in to comment.