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 490640d commit e9efecd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: '11'
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 11
- name: Set up JAVA 21
uses: actions/setup-java@v4
with:
java-version: 11
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 11 for snapshots
- name: Set up JDK 21 for snapshots
uses: actions/setup-java@v4
with:
java-version: "11"
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 11 for releases
- name: Set up JDK 21 for releases
uses: actions/setup-java@v4
with:
java-version: "11"
java-version: "21"
distribution: "temurin"
cache: "maven"
server-id: openconext-releases
Expand Down

0 comments on commit e9efecd

Please sign in to comment.