From 8cfe4fb037b91f1d679218578d82db8337e74220 Mon Sep 17 00:00:00 2001 From: Okke Harsta Date: Wed, 6 Nov 2024 10:41:33 +0100 Subject: [PATCH] use 21 for Github CI --- .github/workflows/build.yml | 8 ++++---- .github/workflows/release.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 02d0c1d..ed28751 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,11 +12,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 - - name: Set up JAVA 8 - uses: actions/setup-java@v2 + uses: actions/checkout@v4 + - name: Set up JAVA 21 + uses: actions/setup-java@v4 with: - java-version: 8 + java-version: '21' distribution: 'temurin' - name: Build with Maven run: mvn -B package --file pom.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d3c9d5..4aff431 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,10 +19,10 @@ jobs: - name: Check out code uses: actions/checkout@v4 - - name: Set up JAVA 8 + - name: Set up JAVA 21 uses: actions/setup-java@v4 with: - java-version: 8 + java-version: '21' distribution: "temurin" - name: Determine the version @@ -41,10 +41,10 @@ jobs: exit 1 if: github.event_name != 'workflow_dispatch' && steps.versioncheck.outputs.version != github.ref_name - - name: Set up JDK 8 for snapshots + - name: Set up JDK 21for snapshots uses: actions/setup-java@v4 with: - java-version: "8" + java-version: "21" distribution: "temurin" cache: "maven" server-id: openconext-snapshots @@ -52,10 +52,10 @@ jobs: server-password: MAVEN_PASSWORD if: ( endsWith(steps.versioncheck.outputs.version, '-SNAPSHOT')) - - name: Set up JDK 8 for releases + - name: Set up JDK 21 for releases uses: actions/setup-java@v4 with: - java-version: "8" + java-version: "21" distribution: "temurin" cache: "maven" server-id: openconext-releases