From 574ed7857b350f7ba8b0e0d061ad9484977dbbbd Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Mon, 1 Sep 2025 10:14:09 +0200 Subject: [PATCH] .github: Update to JDK 17 in ci.yml and build.yml (#11030) * .github: Update to JDK 17 in build.yml * .github: update JDK in ci.yml --------- Co-authored-by: Suresh Kumar Anaparti --- .github/workflows/build.yml | 9 ++++----- .github/workflows/ci.yml | 9 ++++----- pom.xml | 2 +- 3 files changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fd3c8f8ac67..06f9f424c7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,13 +32,12 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Set up JDK 11 + - name: Set up JDK 17 uses: actions/setup-java@v4 with: - java-version: '11' - distribution: 'adopt' - architecture: x64 - cache: maven + distribution: 'temurin' + java-version: '17' + cache: 'maven' - name: Set up Python uses: actions/setup-python@v5 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c61ca8e4dd..471e56e3f07 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -220,13 +220,12 @@ jobs: with: fetch-depth: 0 - - name: Set up JDK + - name: Set up JDK 17 uses: actions/setup-java@v4 with: - java-version: '11' - distribution: 'adopt' - architecture: x64 - cache: maven + distribution: 'temurin' + java-version: '17' + cache: 'maven' - name: Set up Python uses: actions/setup-python@v5 diff --git a/pom.xml b/pom.xml index 924f8c41884..b33d9dfe4c6 100644 --- a/pom.xml +++ b/pom.xml @@ -58,7 +58,7 @@ 11 target build/replace.properties - -Djava.security.egd=file:/dev/./urandom -noverify --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED + -Djava.security.egd=file:/dev/./urandom -noverify --add-opens=java.base/java.lang=ALL-UNNAMED --add-exports=java.base/sun.security.x509=ALL-UNNAMED --add-exports=java.base/sun.security.provider=ALL-UNNAMED --add-opens=java.base/javax.net.ssl=ALL-UNNAMED 1.8