Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Java 21 and new Runtime APIs #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-timestamped-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
call_workflow:
name: Run Build Workflow
if: ${{ github.repository_owner == 'ballerina-platform' }}
uses: ballerina-platform/ballerina-library/.github/workflows/build-timestamp-master-template.yml@main
uses: ballerina-platform/ballerina-library/.github/workflows/build-timestamp-master-template.yml@java21

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to remove @java21

secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/build-with-bal-test-graalvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
call_stdlib_workflow:
name: Run StdLib Workflow
if: ${{ github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'ballerina-platform') }}
uses: ballerina-platform/ballerina-library/.github/workflows/build-with-bal-test-graalvm-template.yml@main
uses: ballerina-platform/ballerina-library/.github/workflows/build-with-bal-test-graalvm-template.yml@java21
with:
lang_tag: ${{ inputs.lang_tag }}
lang_version: ${{ inputs.lang_version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/central-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
call_workflow:
name: Run Central Publish Workflow
if: ${{ github.repository_owner == 'ballerina-platform' }}
uses: ballerina-platform/ballerina-library/.github/workflows/central-publish-template.yml@main
uses: ballerina-platform/ballerina-library/.github/workflows/central-publish-template.yml@java21
secrets: inherit
with:
environment: ${{ github.event.inputs.environment }}
2 changes: 1 addition & 1 deletion .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
call_workflow:
name: Run Release Workflow
if: ${{ github.repository_owner == 'ballerina-platform' }}
uses: ballerina-platform/ballerina-library/.github/workflows/release-package-template.yml@main
uses: ballerina-platform/ballerina-library/.github/workflows/release-package-template.yml@java21
secrets: inherit
with:
package-name: data.csv
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jobs:
call_workflow:
name: Run PR Build Workflow
if: ${{ github.repository_owner == 'ballerina-platform' }}
uses: ballerina-platform/ballerina-library/.github/workflows/pull-request-build-template.yml@main
uses: ballerina-platform/ballerina-library/.github/workflows/pull-request-build-template.yml@java21
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/trivy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ This repository only contains the source code for the package.

### Set up the prerequisites

1. Download and install Java SE Development Kit (JDK) version 17 (from one of the following locations).
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/)
* [OpenJDK](https://adoptium.net/)

Expand Down
6 changes: 3 additions & 3 deletions ballerina-tests/constraint-validation-tests/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
org = "ballerina"
name = "constraint_validation_tests"
version = "0.1.0"
version = "0.1.1"

[[dependency]]
org = "ballerina"
name = "csv_commons"
repository = "local"
version = "0.1.0"
version = "0.1.1"

[platform.java17]
[platform.java21]
graalvmCompatible = true

[build-options]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.10.0"
distribution-version = "2201.11.0-20241117-133400-a3054b77"

[[package]]
org = "ballerina"
name = "constraint"
version = "1.5.0"
version = "1.6.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand All @@ -22,7 +22,7 @@ modules = [
[[package]]
org = "ballerina"
name = "constraint_validation_tests"
version = "0.1.0"
version = "0.1.1"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "data.csv"},
Expand All @@ -35,7 +35,7 @@ modules = [
[[package]]
org = "ballerina"
name = "data.csv"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand Down
2 changes: 1 addition & 1 deletion ballerina-tests/csv-commons/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "csv_commons"
version = "0.1.0"
version = "0.1.1"

[platform.java17]
graalvmCompatible = true
4 changes: 2 additions & 2 deletions ballerina-tests/csv-commons/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.10.0"
distribution-version = "2201.11.0-20241117-133400-a3054b77"

[[package]]
org = "ballerina"
name = "csv_commons"
version = "0.1.0"
version = "0.1.1"
modules = [
{org = "ballerina", packageName = "csv_commons", moduleName = "csv_commons"}
]
Expand Down
6 changes: 3 additions & 3 deletions ballerina-tests/parse-list-types-tests/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
org = "ballerina"
name = "parse_list_types_tests"
version = "0.1.0"
version = "0.1.1"

[[dependency]]
org = "ballerina"
name = "csv_commons"
repository = "local"
version = "0.1.0"
version = "0.1.1"

[platform.java17]
[platform.java21]
graalvmCompatible = true

[build-options]
Expand Down
8 changes: 4 additions & 4 deletions ballerina-tests/parse-list-types-tests/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.10.0"
distribution-version = "2201.11.0-20241117-133400-a3054b77"

[[package]]
org = "ballerina"
name = "csv_commons"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
modules = [
{org = "ballerina", packageName = "csv_commons", moduleName = "csv_commons"}
Expand All @@ -19,7 +19,7 @@ modules = [
[[package]]
org = "ballerina"
name = "data.csv"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand Down Expand Up @@ -72,7 +72,7 @@ scope = "testOnly"
[[package]]
org = "ballerina"
name = "parse_list_types_tests"
version = "0.1.0"
version = "0.1.1"
dependencies = [
{org = "ballerina", name = "csv_commons"},
{org = "ballerina", name = "data.csv"},
Expand Down
6 changes: 3 additions & 3 deletions ballerina-tests/parse-record-types-tests/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
org = "ballerina"
name = "parse_record_types_tests"
version = "0.1.0"
version = "0.1.1"

[[dependency]]
org = "ballerina"
name = "csv_commons"
repository = "local"
version = "0.1.0"
version = "0.1.1"

[platform.java17]
[platform.java21]
graalvmCompatible = true

[build-options]
Expand Down
8 changes: 4 additions & 4 deletions ballerina-tests/parse-record-types-tests/Dependencies.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.10.0"
distribution-version = "2201.11.0-20241117-133400-a3054b77"

[[package]]
org = "ballerina"
name = "csv_commons"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
modules = [
{org = "ballerina", packageName = "csv_commons", moduleName = "csv_commons"}
Expand All @@ -19,7 +19,7 @@ modules = [
[[package]]
org = "ballerina"
name = "data.csv"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand Down Expand Up @@ -72,7 +72,7 @@ scope = "testOnly"
[[package]]
org = "ballerina"
name = "parse_record_types_tests"
version = "0.1.0"
version = "0.1.1"
dependencies = [
{org = "ballerina", name = "csv_commons"},
{org = "ballerina", name = "data.csv"},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
org = "ballerina"
name = "parse_string_array_types_tests"
version = "0.1.0"
version = "0.1.1"

[[dependency]]
org = "ballerina"
name = "csv_commons"
repository = "local"
version = "0.1.0"
version = "0.1.1"

[platform.java17]
[platform.java21]
graalvmCompatible = true

[build-options]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.10.0"
distribution-version = "2201.11.0-20241117-133400-a3054b77"

[[package]]
org = "ballerina"
name = "csv_commons"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
modules = [
{org = "ballerina", packageName = "csv_commons", moduleName = "csv_commons"}
Expand All @@ -19,7 +19,7 @@ modules = [
[[package]]
org = "ballerina"
name = "data.csv"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand Down Expand Up @@ -72,7 +72,7 @@ scope = "testOnly"
[[package]]
org = "ballerina"
name = "parse_string_array_types_tests"
version = "0.1.0"
version = "0.1.1"
dependencies = [
{org = "ballerina", name = "csv_commons"},
{org = "ballerina", name = "data.csv"},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
org = "ballerina"
name = "parse_string_record_types_tests"
version = "0.1.0"
version = "0.1.1"

[[dependency]]
org = "ballerina"
name = "csv_commons"
repository = "local"
version = "0.1.0"
version = "0.1.1"

[platform.java17]
[platform.java21]
graalvmCompatible = true

[build-options]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

[ballerina]
dependencies-toml-version = "2"
distribution-version = "2201.10.0"
distribution-version = "2201.11.0-20241117-133400-a3054b77"

[[package]]
org = "ballerina"
name = "csv_commons"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
modules = [
{org = "ballerina", packageName = "csv_commons", moduleName = "csv_commons"}
Expand All @@ -19,7 +19,7 @@ modules = [
[[package]]
org = "ballerina"
name = "data.csv"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand Down Expand Up @@ -72,7 +72,7 @@ scope = "testOnly"
[[package]]
org = "ballerina"
name = "parse_string_record_types_tests"
version = "0.1.0"
version = "0.1.1"
dependencies = [
{org = "ballerina", name = "csv_commons"},
{org = "ballerina", name = "data.csv"},
Expand Down
6 changes: 3 additions & 3 deletions ballerina-tests/type-compatible-tests/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
org = "ballerina"
name = "type_compatible_tests"
version = "0.1.0"
version = "0.1.1"

[[dependency]]
org = "ballerina"
name = "csv_commons"
repository = "local"
version = "0.1.0"
version = "0.1.1"

[platform.java17]
[platform.java21]
graalvmCompatible = true

[build-options]
Expand Down
Loading
Loading