From 4810e247f3a31d3c5cc113eab66a9e727a8e7f76 Mon Sep 17 00:00:00 2001 From: Steve Hill Date: Wed, 23 Nov 2022 10:49:28 -0800 Subject: [PATCH] Always run integration tests on Java 11 too Alternative to #212 --- build.gradle.kts | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 {