diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 3cdc90de88..8e61683017 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -14,7 +14,8 @@ jobs: - name: Set up JDK 11 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: @@ -98,7 +99,8 @@ jobs: - name: Set up JDK 11 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 4cc295301c..521ade4586 100644 --- a/.github/workflows/detekt.yml +++ b/.github/workflows/detekt.yml @@ -15,7 +15,8 @@ jobs: - name: Set up JDK 11 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 046f7e0050..1b98b6b4d0 100644 --- a/.github/workflows/diktat.yml +++ b/.github/workflows/diktat.yml @@ -18,7 +18,8 @@ jobs: - name: Set up JDK 11 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 2180c68309..f213c4028a 100644 --- a/.github/workflows/diktat_snapshot.yml +++ b/.github/workflows/diktat_snapshot.yml @@ -18,7 +18,8 @@ jobs: - name: Set up JDK 11 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 dbf6f50b97..065d25d1c7 100644 --- a/.github/workflows/metrics_for_master.yml +++ b/.github/workflows/metrics_for_master.yml @@ -18,7 +18,8 @@ jobs: - name: Set up JDK 11 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 097cf66ea7..2bfcd0de8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,8 @@ jobs: - name: Set up JDK 11 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: