Skip to content

Commit

Permalink
Set missing distribution in Java action
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jan 15, 2024
1 parent 8a24919 commit bb83bd9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@ jobs:
java-version: |
11
17
- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'
cache-dependency-path: '**/pom.xml'

- name: build with maven
run: |
Expand All @@ -65,15 +59,10 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11

- name: Cache local Maven repository
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'
cache-dependency-path: '**/pom.xml'

- name: sonar
env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:

- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11

- name: maven release ${{steps.metadata.outputs.current-version}}
Expand Down

0 comments on commit bb83bd9

Please sign in to comment.