Skip to content

Commit

Permalink
Skip Java 8 and Java 11 for JavaPoet interop
Browse files Browse the repository at this point in the history
  • Loading branch information
squarejesse committed Oct 15, 2024
1 parent dbd6ab2 commit 467aee0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ subprojects {
// Create a test task for each supported JDK. We check every "LTS" + current version.
val versionsToTest = listOf(8, 11, 17, 21, 23)
for (majorVersion in versionsToTest) {
if (name == "javapoet" && majorVersion < 17) {
continue // JavaPoet requires Java 17+.
}

val jdkTest = tasks.register<Test>("testJdk$majorVersion") {
val javaToolchains = project.extensions.getByType(JavaToolchainService::class)
javaLauncher = javaToolchains.launcherFor {
Expand Down

0 comments on commit 467aee0

Please sign in to comment.