diff --git a/gapic-generator-java/.github/workflows/ci-maven.yaml b/gapic-generator-java/.github/workflows/ci-maven.yaml index 5ffc8cae1b..868afec4e4 100644 --- a/gapic-generator-java/.github/workflows/ci-maven.yaml +++ b/gapic-generator-java/.github/workflows/ci-maven.yaml @@ -13,9 +13,10 @@ jobs: java: [8, 11] steps: - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} + distribution: temurin - run: java -version - name: Cache local Maven repository diff --git a/gapic-generator-java/.github/workflows/ci.yaml b/gapic-generator-java/.github/workflows/ci.yaml index 51fced63cc..ee25150c27 100644 --- a/gapic-generator-java/.github/workflows/ci.yaml +++ b/gapic-generator-java/.github/workflows/ci.yaml @@ -13,9 +13,10 @@ jobs: java: [8, 11] steps: - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/setup-java@v3 with: java-version: ${{ matrix.java }} + distribution: temurin - run: java -version - name: Bazel File Cache Setup diff --git a/gapic-generator-java/.github/workflows/sonar.yaml b/gapic-generator-java/.github/workflows/sonar.yaml index 910954a402..0b700dd288 100644 --- a/gapic-generator-java/.github/workflows/sonar.yaml +++ b/gapic-generator-java/.github/workflows/sonar.yaml @@ -14,9 +14,10 @@ jobs: with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: 11 + distribution: temurin - name: Cache SonarCloud packages uses: actions/cache@v2 with: