Skip to content

Commit

Permalink
use 21 for Github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Nov 6, 2024
1 parent 149c9cf commit 8cfe4fb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,21 +41,21 @@ 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
server-username: MAVEN_USERNAME
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
Expand Down

0 comments on commit 8cfe4fb

Please sign in to comment.