Skip to content

Commit

Permalink
Merge pull request #37 from ravinperera00/java21
Browse files Browse the repository at this point in the history
Migrate to Java 21 and new Runtime APIs
  • Loading branch information
warunalakshitha authored Nov 22, 2024
2 parents 965392d + a950d20 commit 4b7a573
Show file tree
Hide file tree
Showing 39 changed files with 153 additions and 238 deletions.
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
8 changes: 4 additions & 4 deletions ballerina-tests/constraint-validation-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 = "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
6 changes: 3 additions & 3 deletions ballerina-tests/parse-string-array-types-tests/Ballerina.toml
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
10 changes: 5 additions & 5 deletions ballerina-tests/type-compatible-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 All @@ -31,7 +31,7 @@ modules = [
[[package]]
org = "ballerina"
name = "io"
version = "1.6.1"
version = "1.6.2"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"},
Expand Down Expand Up @@ -108,7 +108,7 @@ modules = [
[[package]]
org = "ballerina"
name = "type_compatible_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/unicode-tests/Ballerina.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
org = "ballerina"
name = "unicode_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
6 changes: 3 additions & 3 deletions ballerina-tests/unicode-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 = "data.csv"
version = "0.1.0"
version = "0.1.1"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
Expand Down Expand Up @@ -77,7 +77,7 @@ modules = [
[[package]]
org = "ballerina"
name = "unicode_tests"
version = "0.1.0"
version = "0.1.1"
dependencies = [
{org = "ballerina", name = "data.csv"},
{org = "ballerina", name = "test"}
Expand Down
Loading

0 comments on commit 4b7a573

Please sign in to comment.