diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index 9958ac0f4..3f97090df 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -41,7 +41,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
- java-version: 17
+ java-version: 21
distribution: 'temurin'
- name: Run Tests
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 7f21a6818..15d774245 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -32,7 +32,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
- java-version: '17'
+ java-version: '21'
distribution: 'temurin'
- name: Build JPlag
run: mvn -U -B clean package assembly:single
diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml
index 25de0f0a0..21359d3fa 100644
--- a/.github/workflows/spotless.yml
+++ b/.github/workflows/spotless.yml
@@ -41,7 +41,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v3
with:
- java-version: 17
+ java-version: 21
distribution: 'temurin'
- name: Check with Spotless
diff --git a/pom.xml b/pom.xml
index 19c045873..c5267261b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,8 +72,8 @@
${maven.multiModuleProjectDirectory}/coverage-report/target/site/jacoco-aggregate/jacoco.xml
- 17
- 17
+ 21
+ 21
2.40.0
2.0.9
5.10.0