Skip to content

Commit

Permalink
chore(deps): bump actions/setup-java from v1 to v2 (idealo#7)
Browse files Browse the repository at this point in the history
* chore(deps): bump actions/setup-java from v1 to v2

Bumps [actions/setup-java](https://github.com/actions/setup-java) from v1 to v2.
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](actions/setup-java@v1...8764a52)

Signed-off-by: dependabot[bot] <support@github.com>

* Add distribution argument

* Use new JDK version notation

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: heiko.rothe <heiko.rothe@idealo.de>
  • Loading branch information
dependabot[bot] and heiko.rothe authored Apr 29, 2021
1 parent caea473 commit 27954c9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: adopt
java-version: 8
- name: Cache Maven packages
uses: actions/cache@v2.1.5
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/prepare-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ jobs:
- uses: actions/checkout@v2
- run: git config --global user.email "actions@users.noreply.github.com"
- run: git config --global user.name "GitHub Actions"
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: adopt
java-version: 8
- name: Cache Maven packages
uses: actions/cache@v2.1.5
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release-github.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 8
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: adopt
java-version: 8

- name: Cache Maven packages
uses: actions/cache@v2.1.5
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/release-maven-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ jobs:
- uses: actions/checkout@v2

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: adopt
java-version: 8

- name: Cache Maven packages
uses: actions/cache@v2.1.5
Expand All @@ -27,9 +28,10 @@ jobs:
run: mvn -B package --file pom.xml

- name: Set up Apache Maven Central
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: adopt
java-version: 8
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
Expand Down

0 comments on commit 27954c9

Please sign in to comment.