Skip to content

Commit

Permalink
Only run latest jOOQ sample on Java 21+
Browse files Browse the repository at this point in the history
  • Loading branch information
shakuzen committed Feb 25, 2025
1 parent 88b3f8e commit 335d49a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions samples/micrometer-samples-jooq/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ plugins {
id 'java'
}

// Latest open source jOOQ versions only support Java 17+
// skip this module when building with jdk <17
if (!javaLanguageVersion.canCompileOrRun(17)) {
// Latest open source jOOQ versions only support Java 21+
// skip this module when building with jdk <21
if (!javaLanguageVersion.canCompileOrRun(21)) {
project.tasks.configureEach { task -> task.enabled = false }
}

Expand All @@ -21,11 +21,11 @@ dependencies {
}

java {
targetCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_21
}

compileJava {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
options.release = 17
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
options.release = 21
}

0 comments on commit 335d49a

Please sign in to comment.