From 2e8fc56287c1766c2e0c0be610d0af23e621c472 Mon Sep 17 00:00:00 2001 From: ravinperera00 Date: Sun, 17 Nov 2024 12:03:54 +0530 Subject: [PATCH] Migrate to Java 21 and new Runtime APIs --- .github/workflows/build-timestamped-master.yml | 4 ++-- .../workflows/dev-stage-central-publish.yml | 4 ++-- .github/workflows/publish-release.yml | 4 ++-- .github/workflows/pull-request.yml | 4 ++-- README.md | 2 +- build-config/resources/Ballerina.toml | 2 +- edi-tools-cli/build.gradle | 2 +- edi-tools-tests/Ballerina.toml | 2 +- edi-tools/Ballerina.toml | 2 +- gradle.properties | 18 +++++++++--------- 10 files changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-timestamped-master.yml b/.github/workflows/build-timestamped-master.yml index 54f1930..f6e2e0e 100644 --- a/.github/workflows/build-timestamped-master.yml +++ b/.github/workflows/build-timestamped-master.yml @@ -26,11 +26,11 @@ jobs: with: version: latest - - 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: Change to Timestamped Version run: | startTime=$(TZ="Asia/Kolkata" date +'%Y%m%d-%H%M00') diff --git a/.github/workflows/dev-stage-central-publish.yml b/.github/workflows/dev-stage-central-publish.yml index 7132356..b04d152 100644 --- a/.github/workflows/dev-stage-central-publish.yml +++ b/.github/workflows/dev-stage-central-publish.yml @@ -24,11 +24,11 @@ jobs: with: version: latest - - 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: Grant execute permission for gradlew run: chmod +x gradlew diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index faa2ac1..6e2c0d3 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -16,11 +16,11 @@ jobs: with: version: latest - - 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: Set version env variable run: echo "VERSION=$((grep -w "version" | cut -d= -f2) < gradle.properties | rev | cut --complement -d- -f1 | rev)" >> $GITHUB_ENV diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9688149..8114491 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -22,11 +22,11 @@ jobs: with: version: latest - - 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: Set ENV Variables run: | diff --git a/README.md b/README.md index fd1d61c..ce74881 100644 --- a/README.md +++ b/README.md @@ -416,7 +416,7 @@ This repository only contains the source code for the package. ### Prerequisites -1. Download and install Java SE Development Kit (JDK) version 17. You can download it from either of the following sources: +1. Download and install Java SE Development Kit (JDK) version 21. You can download it from either of the following sources: * [Oracle JDK](https://www.oracle.com/java/technologies/downloads/) * [OpenJDK](https://adoptium.net/) diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml index 7e74f98..e840242 100644 --- a/build-config/resources/Ballerina.toml +++ b/build-config/resources/Ballerina.toml @@ -5,4 +5,4 @@ version = "@toml.version@" authors = ["Ballerina"] keywords = ["edi"] license = ["Apache-2.0"] -distribution = "2201.10.0" +distribution = "2201.11.0-20241112-214900-6b80ab87" diff --git a/edi-tools-cli/build.gradle b/edi-tools-cli/build.gradle index 6f139e2..149145a 100644 --- a/edi-tools-cli/build.gradle +++ b/edi-tools-cli/build.gradle @@ -44,7 +44,7 @@ repositories { } dependencies { - implementation 'org.ballerinalang:ballerina-cli:2201.5.0' + implementation 'org.ballerinalang:ballerina-cli:2201.11.0-20241112-214900-6b80ab87' implementation 'info.picocli:picocli:4.0.1' } diff --git a/edi-tools-tests/Ballerina.toml b/edi-tools-tests/Ballerina.toml index 3a93be0..0dc9e57 100644 --- a/edi-tools-tests/Ballerina.toml +++ b/edi-tools-tests/Ballerina.toml @@ -2,7 +2,7 @@ org = "ballerina" name = "editoolstests" version = "0.1.0" -distribution = "2201.10.0" +distribution = "2201.11.0-20241112-214900-6b80ab87" [build-options] observabilityIncluded = true diff --git a/edi-tools/Ballerina.toml b/edi-tools/Ballerina.toml index 9920ceb..20cb003 100644 --- a/edi-tools/Ballerina.toml +++ b/edi-tools/Ballerina.toml @@ -5,4 +5,4 @@ version = "2.1.0" authors = ["Ballerina"] keywords = ["edi"] license = ["Apache-2.0"] -distribution = "2201.10.0" +distribution = "2201.11.0-20241112-214900-6b80ab87" diff --git a/gradle.properties b/gradle.properties index 206ac59..925b231 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,22 +4,22 @@ version=2.1.0 #dependency checkstylePluginVersion=10.12.0 -spotbugsPluginVersion=5.0.14 +spotbugsPluginVersion=6.0.18 shadowJarPluginVersion=8.1.1 downloadPluginVersion=5.4.0 releasePluginVersion=2.8.0 ballerinaGradlePluginVersion=2.2.0 -ballerinaLangVersion=2201.10.0-20240806-083400-aabac46a +ballerinaLangVersion=2201.11.0-20241112-214900-6b80ab87 # Stdlib Level 01 -stdlibIoVersion=1.6.1 -stdlibLogVersion=2.10.0-20240807-203000-b85cfb9 -stdlibFileVersion=1.10.0-20240807-205900-a4d66bb +stdlibIoVersion=1.6.2-20241112-233100-995cf5f +stdlibLogVersion=2.10.1-20241113-120000-4577868 +stdlibFileVersion=1.10.1-20241113-151700-e1a2e38 # Stdlib Level 02 -stdlibOsVersion=1.8.0 -stdlibTimeVersion=2.4.0 +stdlibOsVersion=1.8.1-20241113-122000-cca973b +stdlibTimeVersion=2.6.0-20241113-073800-201b904 # Ballerinax Observer -observeVersion=1.3.0-20240807-093200-e29ca7a -observeInternalVersion=1.3.0-20240807-094500-91e2d3a +observeVersion=1.4.0-20241113-092000-b83ae74 +observeInternalVersion=1.3.1-20241113-101700-265054d