Skip to content

Commit

Permalink
Specify JDK version when building, add Maven cache
Browse files Browse the repository at this point in the history
  • Loading branch information
C0urante committed Mar 26, 2024
1 parent 03a6143 commit af494e7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/create_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ jobs:
echo "Will use version ${version}"
echo "version=${version}" >> $GITHUB_ENV
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 8
cache: maven

- name: Build
run: |
mvn -f kcbq-connector clean package assembly:single@release-artifacts -DskipTests
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release_pr_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ jobs:
exit 1
fi
- name: Set up JDK 8
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 8
cache: maven

- name: Checkout master
uses: actions/checkout@v2
with:
Expand Down

0 comments on commit af494e7

Please sign in to comment.