diff --git a/.github/workflows/asf-snapshots-deploy.yml b/.github/workflows/asf-snapshots-deploy.yml index be1695043f..24d2a75aad 100644 --- a/.github/workflows/asf-snapshots-deploy.yml +++ b/.github/workflows/asf-snapshots-deploy.yml @@ -34,9 +34,10 @@ jobs: steps: - uses: actions/checkout@v4.1.4 - name: Set up JDK ${{ matrix.java }} - uses: AdoptOpenJDK/install-jdk@v1.1.1 + uses: actions/setup-java@v4.2.1 with: - version: ${{ matrix.java }} + distribution: 'temurin' + java-version: ${{ matrix.java }} - name: Cache Maven Repository uses: actions/cache@v4 with: @@ -57,9 +58,10 @@ jobs: steps: - uses: actions/checkout@v4.1.4 - name: Set up JDK ${{ matrix.java }} - uses: AdoptOpenJDK/install-jdk@v1.1.1 + uses: actions/setup-java@v4.2.1 with: - version: ${{ matrix.java }} + distribution: 'temurin' + java-version: ${{ matrix.java }} - name: Deploy to ASF Snapshots Repository run: | ./mvnw ${MAVEN_ARGS} \ diff --git a/.github/workflows/automatic-sync-camel-main.yml b/.github/workflows/automatic-sync-camel-main.yml index aecbc421b0..6cce6358c3 100644 --- a/.github/workflows/automatic-sync-camel-main.yml +++ b/.github/workflows/automatic-sync-camel-main.yml @@ -31,7 +31,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - java: [ '11' ] + java: [ '17' ] steps: - name: Checkout Camel project uses: actions/checkout@v4.1.4 @@ -40,9 +40,10 @@ jobs: ref: main path: camel - name: Set up JDK ${{ matrix.java }} - uses: AdoptOpenJDK/install-jdk@v1 + uses: actions/setup-java@v4.2.1 with: - version: ${{ matrix.java }} + distribution: 'temurin' + java-version: ${{ matrix.java }} - name: Cache local Maven repository uses: actions/cache@v4 with: diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index f4382cdc82..faf6a16565 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -43,7 +43,7 @@ jobs: steps: - uses: actions/checkout@v4.1.4 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v4 + uses: actions/setup-java@v4.2.1 with: distribution: 'temurin' java-version: ${{ matrix.java }} diff --git a/.github/workflows/daily-java-next.yml b/.github/workflows/daily-java-next.yml index e0f5220e09..b88adcfecb 100644 --- a/.github/workflows/daily-java-next.yml +++ b/.github/workflows/daily-java-next.yml @@ -35,7 +35,7 @@ jobs: steps: - uses: actions/checkout@v4.1.4 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v4 + uses: actions/setup-java@v4.2.1 with: distribution: 'temurin' java-version: ${{ matrix.java }} diff --git a/.github/workflows/maven-it.yaml b/.github/workflows/maven-it.yaml index 9818a2d9f2..fc1a5b7ce2 100644 --- a/.github/workflows/maven-it.yaml +++ b/.github/workflows/maven-it.yaml @@ -43,7 +43,7 @@ jobs: steps: - uses: actions/checkout@v4.1.4 - name: Set up JDK ${{ matrix.java }} - uses: actions/setup-java@v4 + uses: actions/setup-java@v4.2.1 with: distribution: 'temurin' java-version: ${{ matrix.java }}