Run JDK11 tests for KAPT only if JDK11 is available

Otherwise, just skip running them.
This commit is contained in:
Ivan Gavrilovic
2019-09-20 15:26:28 +01:00
committed by Yan Zhulanow
parent 6e7f046471
commit 573e7f2eee
2 changed files with 3 additions and 3 deletions
@@ -605,11 +605,11 @@ public class KotlinTestUtils {
return new File(jdk9);
}
@NotNull
@Nullable
public static File getJdk11Home() {
String jdk11 = System.getenv("JDK_11");
if (jdk11 == null) {
throw new AssertionError("Environment variable JDK_11 is not set!");
return null;
}
return new File(jdk11);
}