Skip to content

Commit

Permalink
Add distribution: 'adopt' for new GHA setup-java
Browse files Browse the repository at this point in the history
  • Loading branch information
jonashackt committed May 12, 2021
1 parent ffe3237 commit e1250db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: ${{ matrix.java-version }}
- run: mvn -B install --no-transfer-progress

Expand All @@ -25,7 +26,9 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 15

- run: mvn -B verify -P coverage --no-transfer-progress

- uses: codecov/codecov-action@v1
Expand All @@ -43,7 +46,8 @@ jobs:
- name: Set up settings.xml for GitHub Packages
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'adopt'
java-version: 15

- name: Publish SNAPSHOT version to GitHub Packages (we can skip tests, since we only deploy, if the build workflow succeeded)
run: mvn -B --no-transfer-progress deploy -DskipTests --projects cxf-spring-boot-starter
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release-to-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Set up settings.xml for Maven Central Repository
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
server-id: oss.sonatype.org
server-username: MAVEN_USERNAME
Expand Down

0 comments on commit e1250db

Please sign in to comment.