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
@@ -36,7 +36,7 @@ interface CustomJdkTestLauncher {
fun doTestWithJdk11(mainClass: Class<*>, arg: String) {
if (isJava9OrLater()) return
doTestCustomJdk(mainClass, arg, KotlinTestUtils.getJdk11Home())
KotlinTestUtils.getJdk11Home()?.let { doTestCustomJdk(mainClass, arg, it) }
}
private fun doTestCustomJdk(mainClass: Class<*>, arg: String, javaHome: File) {