From c8cf22f0aed78b102680158ea9e1e090d08b53ed Mon Sep 17 00:00:00 2001 From: Carsten Gips Date: Wed, 6 Mar 2024 07:30:46 +0100 Subject: [PATCH] Examples: switch to JDK 21 --- hello-world/build.gradle | 2 +- observer/build.gradle | 2 +- visitor/build.gradle | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hello-world/build.gradle b/hello-world/build.gradle index 0c04097..a892c68 100644 --- a/hello-world/build.gradle +++ b/hello-world/build.gradle @@ -12,7 +12,7 @@ dependencies { testImplementation 'junit:junit:4.13.2' } -sourceCompatibility = 17 +sourceCompatibility = 21 test { useJUnit() diff --git a/observer/build.gradle b/observer/build.gradle index ebd4503..ee91eac 100644 --- a/observer/build.gradle +++ b/observer/build.gradle @@ -14,7 +14,7 @@ dependencies { testImplementation "org.powermock:powermock-api-mockito2:2.+" } -sourceCompatibility = 17 +sourceCompatibility = 21 test { useJUnit() diff --git a/visitor/build.gradle b/visitor/build.gradle index b2f9ce1..892f1ad 100644 --- a/visitor/build.gradle +++ b/visitor/build.gradle @@ -10,13 +10,13 @@ repositories { dependencies { implementation "org.jetbrains:annotations:23.0.0" - + testImplementation 'junit:junit:4.13.2' testImplementation "org.powermock:powermock-module-junit4:2.+" testImplementation "org.powermock:powermock-api-mockito2:2.+" } -sourceCompatibility = 17 +sourceCompatibility = 21 test { useJUnit()