java to use jdk 17 (#2686)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3d91644..0a4ecaf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -136,7 +136,7 @@
       - uses: actions/setup-java@v3
         with:
           distribution: temurin
-          java-version: 11
+          java-version: 17
           cache: "gradle"
 
       - name: Install dependencies
@@ -423,8 +423,8 @@
       - uses: actions/setup-java@v3
         with:
           distribution: temurin
-          # here we intentionally use java 8 so that we also verify java 11 compiles to version 8
-          java-version: 8
+          # here we intentionally use an older version so that we also verify java 17 compiles to it
+          java-version: 11
           cache: "gradle"
 
       - name: Install openssl and certificates (for SSL tests)