From 66cb08fed6bfbe3345bff55d1cbf7f01b3b16fba Mon Sep 17 00:00:00 2001 From: Elia Migliore Date: Fri, 3 May 2024 11:10:09 +0200 Subject: [PATCH] Bumped the JDK version and all the workflows actions --- .github/workflows/codeql-analysis.yml | 7 ++++--- .github/workflows/create_release.yml | 5 +++-- .github/workflows/master_push_workflow.yml | 5 +++-- .github/workflows/pull_request_workflow.yml | 5 +++-- .../aiven/kafka/connect/jdbc/SchemaRegistryContainer.java | 8 ++++---- 5 files changed, 17 insertions(+), 13 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 950aec15..264f7379 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -67,10 +67,11 @@ jobs: #- run: | # make bootstrap # make release - - name: Set up JDK 11 - uses: actions/setup-java@v1 + - name: Set up JDK 17 + uses: actions/setup-java@v4.2.1 with: - java-version: 11 + distribution: 'jdkfile' + java-version: '17' - name: Build with Gradle run: ./gradlew build diff --git a/.github/workflows/create_release.yml b/.github/workflows/create_release.yml index 8940b3d3..07f308d8 100644 --- a/.github/workflows/create_release.yml +++ b/.github/workflows/create_release.yml @@ -18,9 +18,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Setup Java SDK - uses: actions/setup-java@v1.4.3 + uses: actions/setup-java@v4.2.1 with: - java-version: 11 + distribution: 'jdkfile' + java-version: '17' - name: Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/master_push_workflow.yml b/.github/workflows/master_push_workflow.yml index 1a2f388a..1c3ea311 100644 --- a/.github/workflows/master_push_workflow.yml +++ b/.github/workflows/master_push_workflow.yml @@ -13,8 +13,9 @@ jobs: with: fetch-depth: 0 - name: Set up JDK 11 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4.2.1 with: - java-version: 11 + distribution: 'jdkfile' + java-version: '17' - name: Build with Gradle run: ./gradlew build integrationTest diff --git a/.github/workflows/pull_request_workflow.yml b/.github/workflows/pull_request_workflow.yml index a41dd4ab..9f6aedee 100644 --- a/.github/workflows/pull_request_workflow.yml +++ b/.github/workflows/pull_request_workflow.yml @@ -12,8 +12,9 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - name: Set up JDK 17 - uses: actions/setup-java@v1 + uses: actions/setup-java@v4.2.1 with: - java-version: 17 + distribution: 'jdkfile' + java-version: '17' - name: Build with Gradle run: ./gradlew build integrationTest diff --git a/src/integrationTest/java/io/aiven/kafka/connect/jdbc/SchemaRegistryContainer.java b/src/integrationTest/java/io/aiven/kafka/connect/jdbc/SchemaRegistryContainer.java index cd015f2e..c9804ee2 100644 --- a/src/integrationTest/java/io/aiven/kafka/connect/jdbc/SchemaRegistryContainer.java +++ b/src/integrationTest/java/io/aiven/kafka/connect/jdbc/SchemaRegistryContainer.java @@ -24,21 +24,21 @@ public final class SchemaRegistryContainer extends GenericContainer