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 b97cc7f commit 24ec4d6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 1.8
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '21'
- 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 24ec4d6

Please sign in to comment.