Skip to content

Commit

Permalink
Skip jetty12 module on jdk less than 17
Browse files Browse the repository at this point in the history
  • Loading branch information
shakuzen committed Nov 10, 2023
1 parent 36ef458 commit 37a3ab9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions samples/micrometer-samples-jetty12/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ plugins {
id 'java'
}

// skip this module when building with jdk <17
if (!javaLanguageVersion.canCompileOrRun(17)) {
project.tasks.configureEach { task -> task.enabled = false }
}

dependencies {
implementation project(":micrometer-core")

Expand All @@ -11,3 +16,9 @@ dependencies {
testImplementation libs.junitJupiter
testImplementation libs.assertj
}

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

0 comments on commit 37a3ab9

Please sign in to comment.