Update setup-java to v2
MODIFY
.github/workflows/build-grpc-smoke-dist.yaml
.github/workflows/build-grpc-smoke-dist.yaml
@@ -14,8 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Cache gradle dependencies

MODIFY
.github/workflows/build-play-smoke-dist.yaml
.github/workflows/build-play-smoke-dist.yaml
@@ -14,8 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Cache gradle dependencies

MODIFY
.github/workflows/build-smoke-dist-fakebackend.yaml
.github/workflows/build-smoke-dist-fakebackend.yaml
@@ -14,8 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Cache gradle dependencies
@@ -49,8 +50,9 @@ jobs:
- uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Cache gradle dependencies

MODIFY
.github/workflows/build-springboot-smoke-dist.yaml
.github/workflows/build-springboot-smoke-dist.yaml
@@ -14,8 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Cache gradle dependencies

MODIFY
.github/workflows/build-test-matrix.yaml
.github/workflows/build-test-matrix.yaml
@@ -14,8 +14,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Cache gradle dependencies
@@ -49,8 +50,9 @@ jobs:
- uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Cache gradle dependencies

MODIFY
.github/workflows/ci.yaml
.github/workflows/ci.yaml
@@ -15,8 +15,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running checks
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -38,8 +39,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running checks
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -68,8 +70,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -95,13 +98,15 @@ jobs:
fetch-depth: 0
- id: setup-test-java
name: Set up JDK ${{ matrix.java }} for running tests
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: ${{ matrix.java }}
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache

MODIFY
.github/workflows/codeql-analysis.yml
.github/workflows/codeql-analysis.yml
@@ -19,8 +19,9 @@ jobs:
languages: java
- name: Setup Java 11
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Autobuild

MODIFY
.github/workflows/nightly.yaml
.github/workflows/nightly.yaml
@@ -15,8 +15,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running checks
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -38,8 +39,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running checks
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -68,8 +70,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -95,13 +98,15 @@ jobs:
fetch-depth: 0
- id: setup-test-java
name: Set up JDK ${{ matrix.java }} for running tests
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: ${{ matrix.java }}
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -122,8 +127,9 @@ jobs:
with:
fetch-depth: 0
- name: Set up JDK 11
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -146,8 +152,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running checks
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache

MODIFY
.github/workflows/patch-release-build.yml
.github/workflows/patch-release-build.yml
@@ -48,8 +48,9 @@ jobs:
uses: actions/checkout@v2
with:
ref: ${{ needs.prepare-release-branch.outputs.release-branch-name }}
- - uses: actions/setup-java@v1
+ - uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Setup git name
run: |

MODIFY
.github/workflows/pr.yaml
.github/workflows/pr.yaml
@@ -11,8 +11,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running checks
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -42,8 +43,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running checks
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -67,13 +69,15 @@ jobs:
fetch-depth: 0
- id: setup-test-java
name: Set up JDK ${{ matrix.java }} for running tests
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: ${{ matrix.java }}
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -112,8 +116,9 @@ jobs:
fetch-depth: 0
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Restore cache
@@ -134,8 +139,9 @@ jobs:
with:
fetch-depth: 0
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- id: set-matrix
run: echo "::set-output name=matrix::{\"module\":[\"$(./gradlew -q instrumentation:listInstrumentations | xargs echo | sed 's/ /","/g')\"]}"
@@ -150,8 +156,9 @@ jobs:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up JDK 11 for running Gradle
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Run muzzle
run: ./gradlew ${{ matrix.module }}:muzzle

MODIFY
.github/workflows/release-build.yml
.github/workflows/release-build.yml
@@ -13,8 +13,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- - uses: actions/setup-java@v1
+ - uses: actions/setup-java@v2
with:
+ distribution: adopt
java-version: 11
- name: Build and publish artifacts
uses: burrunan/gradle-cache-action@v1.10

Update setup-java to v2 (#2733)