diff --git a/build.gradle.kts b/build.gradle.kts index 0544f363..816645ad 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -142,6 +142,17 @@ tasks.addRule("Pattern: testGradle") { } } +val integrationTestOnJava11 = tasks.register("integrationTestOnJava11") { + systemProperty("gradle.under.test", "7.5.1") + setTestNameIncludePatterns(listOf("*IntegrationSpec")) + javaLauncher.set(javaToolchains.launcherFor { + languageVersion.set(JavaLanguageVersion.of(11)) + }) +} +tasks.check { + dependsOn(integrationTestOnJava11) +} + tasks.withType().configureEach { useJUnitPlatform() testLogging {