Skip to content

Commit

Permalink
Always run integration tests on Java 11 too
Browse files Browse the repository at this point in the history
Alternative to #212
  • Loading branch information
sghill committed Nov 23, 2022
1 parent 22c6c98 commit 4810e24
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@ tasks.addRule("Pattern: testGradle<ID>") {
}
}

val integrationTestOnJava11 = tasks.register<Test>("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<Test>().configureEach {
useJUnitPlatform()
testLogging {
Expand Down

0 comments on commit 4810e24

Please sign in to comment.