diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 48ff9cf0dc..8e61683017 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -12,9 +12,10 @@ jobs: # actions/checkout v1.* is needed for correct codecov upload, see github issues for details - uses: actions/checkout@v1 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: zulu + java-version: 11 - name: Cache local Maven repository uses: actions/cache@v2 with: @@ -96,9 +97,10 @@ jobs: steps: - uses: actions/checkout@v2.3.3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: zulu + java-version: 11 - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/detekt.yml b/.github/workflows/detekt.yml index b1a78105ba..521ade4586 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -13,9 +13,10 @@ jobs: steps: - uses: actions/checkout@v2.3.3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: zulu + java-version: 11 - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/diktat.yml b/.github/workflows/diktat.yml index 70d08e9c95..1b98b6b4d0 100644 --- a/.github/workflows/diktat.yml +++ b/.github/workflows/diktat.yml @@ -16,9 +16,10 @@ jobs: # set this to 0 to fetch all tags too and be able to use them later fetch-depth: 0 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: zulu + java-version: 11 - name: Cache local Maven repository uses: actions/cache@v2 with: diff --git a/.github/workflows/diktat_snapshot.yml b/.github/workflows/diktat_snapshot.yml index 7ec79c34f4..f213c4028a 100644 --- a/.github/workflows/diktat_snapshot.yml +++ b/.github/workflows/diktat_snapshot.yml @@ -16,9 +16,10 @@ jobs: steps: - uses: actions/checkout@v2.3.3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: zulu + java-version: 11 - name: Cache local Maven repository (shared with regular CI build) uses: actions/cache@v2 with: diff --git a/.github/workflows/metrics_for_master.yml b/.github/workflows/metrics_for_master.yml index 5092727af3..065d25d1c7 100644 --- a/.github/workflows/metrics_for_master.yml +++ b/.github/workflows/metrics_for_master.yml @@ -16,9 +16,10 @@ jobs: steps: - uses: actions/checkout@v2.3.3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: zulu + java-version: 11 - name: Cache local Maven repository uses: actions/cache@v2 # keys are the same as in build_and_test workflow to make cache available for PRs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc9cf2750a..2bfcd0de8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,9 +14,10 @@ jobs: - name: Checkout uses: actions/checkout@v2.3.3 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 1.11 + distribution: zulu + java-version: 11 - name: Cache local Maven repository uses: actions/cache@v2 with: