Skip to content

Commit

Permalink
JDK21 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 3, 2024
1 parent c394908 commit 703bcaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 1.8
java-version: 21
distribution: "temurin"
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Codecov
Expand Down
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 21 for 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 703bcaa

Please sign in to comment.