Skip to content

Commit

Permalink
Check java version 21 and migrate CI to 17, 21, 22
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-powell committed Nov 21, 2024
1 parent c76c15d commit 79ddb14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
windows-latest,
ubuntu-latest
]
java-version: [17, 18, 22]
java-version: [17, 21, 22]

runs-on: ${{matrix.os}}

Expand Down
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ subprojects {
showCauses true
}

// Enabled dynamic agent loading (ByteBuddy) for JDK 21+ https://openjdk.org/jeps/451
jvmArgs '-XX:+EnableDynamicAgentLoading'
if (it.javaVersion.isCompatibleWith(JavaVersion.VERSION_21)) {
// Enabled dynamic agent loading (ByteBuddy) for JDK 21+ https://openjdk.org/jeps/451
jvmArgs '-XX:+EnableDynamicAgentLoading'
}
}

tasks.withType(JavaCompile).configureEach {
Expand Down

0 comments on commit 79ddb14

Please sign in to comment.