diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 0aa48e3..eb720bc 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -15,7 +15,7 @@ jobs:
     - uses: actions/setup-java@v2
       with:
         distribution: 'temurin'
-        java-version: 8
+        java-version: 17
 
     - name: Cache maven packages to speed up build
       uses: actions/cache@v1
diff --git a/pom.xml b/pom.xml
index 07bd968..15b379e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,8 +5,8 @@
     <version>master</version>
 
     <properties>
-        <maven.compiler.source>1.8</maven.compiler.source>
-        <maven.compiler.target>1.8</maven.compiler.target>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
         <maven.test.skip>true</maven.test.skip>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>