diff --git a/.github/workflows/build-timestamped-master.yml b/.github/workflows/build-timestamped-master.yml index c1ee3a9..290b863 100644 --- a/.github/workflows/build-timestamped-master.yml +++ b/.github/workflows/build-timestamped-master.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - java21 paths-ignore: - '*.md' workflow_dispatch: @@ -14,11 +15,11 @@ jobs: if: github.repository_owner == 'ballerina-platform' steps: - uses: actions/checkout@v2 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v2 with: distribution: 'temurin' - java-version: 17.0.7 + java-version: 21.0.3 - name: Change to Timestamped Version run: | startTime=$(TZ="Asia/Kolkata" date +'%Y%m%d-%H%M00') diff --git a/.github/workflows/central-publish.yml b/.github/workflows/central-publish.yml index f2e11f4..5509335 100644 --- a/.github/workflows/central-publish.yml +++ b/.github/workflows/central-publish.yml @@ -18,11 +18,11 @@ jobs: if: github.repository_owner == 'ballerina-platform' steps: - uses: actions/checkout@v3 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 17.0.7 + java-version: 21.0.3 - name: Build with Gradle env: packageUser: ${{ github.actor }} diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index dc66bbc..0eddb0e 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -13,11 +13,11 @@ jobs: if: github.repository_owner == 'ballerina-platform' steps: - uses: actions/checkout@v3 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 17.0.7 + java-version: 21.0.3 - name: Build with Gradle env: packageUser: ${{ github.actor }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index b6babf0..eaae5d4 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -5,6 +5,7 @@ on: branches: - main - 2201.[0-9]+.x + - java21 jobs: ubuntu-build: @@ -12,11 +13,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 17.0.7 + java-version: 21.0.3 - name: Build with Gradle env: packageUser: ${{ github.actor }} @@ -29,11 +30,11 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v3 - - name: Set up JDK 17 + - name: Set up JDK 21 uses: actions/setup-java@v3 with: distribution: 'temurin' - java-version: 17.0.7 + java-version: 21.0.3 - name: Build with Gradle env: packageUser: ${{ github.actor }} diff --git a/.github/workflows/trivy-scan.yml b/.github/workflows/trivy-scan.yml index c02c8ff..41e8f6a 100644 --- a/.github/workflows/trivy-scan.yml +++ b/.github/workflows/trivy-scan.yml @@ -9,5 +9,5 @@ jobs: call_workflow: name: Run Trivy Scan Workflow if: ${{ github.repository_owner == 'ballerina-platform' }} - uses: ballerina-platform/ballerina-library/.github/workflows/trivy-scan-template.yml@main + uses: ballerina-platform/ballerina-library/.github/workflows/trivy-scan-template.yml@java21 secrets: inherit diff --git a/README.md b/README.md index e33196b..431f573 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,8 @@ This Package bundles the latest MySQL driver so that mysql connector can be used ### Set up the prerequisites -1. Download and install Java SE Development Kit (JDK) version 17 (from one of the following locations). - * [Oracle](https://www.oracle.com/java/technologies/downloads/#java17) +1. Download and install Java SE Development Kit (JDK) version 21 (from one of the following locations). + * [Oracle](https://www.oracle.com/java/technologies/downloads/#java21) * [OpenJDK](https://adoptium.net/) 2. Export your GitHub personal access token with read package permissions as follows. diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index 21c4f3b..f101a71 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -1,21 +1,21 @@ [package] org = "ballerinax" name = "mysql.driver" -version = "1.7.0" +version = "1.7.1" authors = ["Ballerina"] keywords = ["Azure", "MySQL"] repository = "https://github.com/ballerina-platform/module-ballerinax-mysql.driver" license = ["Apache-2.0"] -distribution = "2201.8.0" +distribution = "2201.10.0-20241025-103700-5c9e6a27" -[platform.java17] +[platform.java21] graalvmCompatible = true -[[platform.java17.dependency]] +[[platform.java21.dependency]] path = "./lib/mysql-connector-j-8.2.0.jar" -[[platform.java17.dependency]] +[[platform.java21.dependency]] groupId = "io.ballerina.stdlib" artifactId = "mysql.driver-native" -version = "1.7.0" -path = "../native/build/libs/mysql.driver-native-1.7.0.jar" +version = "1.7.1" +path = "../native/build/libs/mysql.driver-native-1.7.1-SNAPSHOT.jar" diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index 817098d..63d9bd6 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.8.0" +distribution-version = "2201.10.0-20241025-103700-5c9e6a27" [[package]] org = "ballerinax" name = "mysql.driver" -version = "1.7.0" +version = "1.7.1" modules = [ {org = "ballerinax", packageName = "mysql.driver", moduleName = "mysql.driver"} ] diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml index 02d180e..031edd7 100644 --- a/build-config/resources/Ballerina.toml +++ b/build-config/resources/Ballerina.toml @@ -6,15 +6,15 @@ authors = ["Ballerina"] keywords = ["Azure", "MySQL"] repository = "https://github.com/ballerina-platform/module-ballerinax-mysql.driver" license = ["Apache-2.0"] -distribution = "2201.8.0" +distribution = "2201.10.0-20241025-103700-5c9e6a27" -[platform.java17] +[platform.java21] graalvmCompatible = true -[[platform.java17.dependency]] +[[platform.java21.dependency]] path = "./lib/mysql-connector-j-@mysql.driver.version@.jar" -[[platform.java17.dependency]] +[[platform.java21.dependency]] groupId = "io.ballerina.stdlib" artifactId = "mysql.driver-native" version = "@toml.version@" diff --git a/gradle.properties b/gradle.properties index 4f76bcc..d25f6fe 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,11 +1,11 @@ group=io.ballerina.stdlib version=1.7.1-SNAPSHOT -githubSpotbugsVersion=5.0.14 +githubSpotbugsVersion=6.0.18 githubJohnrengelmanShadowVersion=8.1.0 mySQLDriverVersion=8.2.0 underCouchDownloadVersion=5.4.0 researchgateReleaseVersion=2.8.0 ballerinaGradlePluginVersion=2.0.1 -ballerinaLangVersion=2201.8.0 +ballerinaLangVersion=2201.10.0-20241025-103700-5c9e6a27