Skip to content

Commit

Permalink
Use JDK 17 and Temurin distro, like in core Hz (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomaszGaweda authored Jun 24, 2024
1 parent d80b19b commit cb50ffd
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/java-config.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
JAVA_VERSION=17
JAVA_DISTRIBUTION=temurin
6 changes: 4 additions & 2 deletions .github/workflows/do-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Read Java Config
run: cat ${{ github.workspace }}/.github/java-config.env >> $GITHUB_ENV
- name: Set up Java and credentials
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'adopt'
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/pr-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Read Java Config
run: cat ${{ github.workspace }}/.github/java-config.env >> $GITHUB_ENV
- name: Set up Apache Maven Central
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'adopt'
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
cache: 'maven'

- name: Build
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/push-snapshots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Read Java Config
run: cat ${{ github.workspace }}/.github/java-config.env >> $GITHUB_ENV
- name: Set up Apache Maven Central
uses: actions/setup-java@v3
with:
java-version: 8
distribution: 'adopt'
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.JAVA_DISTRIBUTION }}
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
Expand Down

0 comments on commit cb50ffd

Please sign in to comment.