diff --git a/README.md b/README.md
index 817dc92..98b2c5c 100644
--- a/README.md
+++ b/README.md
@@ -464,7 +464,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/)
diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml
index 65c2357..143368a 100644
--- a/ballerina/Ballerina.toml
+++ b/ballerina/Ballerina.toml
@@ -1,7 +1,7 @@
[package]
org = "ballerina"
name = "data.xmldata"
-version = "1.0.0"
+version = "1.0.1"
authors = ["Ballerina"]
keywords = ["xml"]
repository = "https://github.com/ballerina-platform/module-ballerina-data-xmldata"
@@ -9,14 +9,14 @@ license = ["Apache-2.0"]
distribution = "2201.10.0"
export = ["data.xmldata"]
-[[platform.java17.dependency]]
+[[platform.java21.dependency]]
groupId = "io.ballerina.lib"
artifactId = "data-native"
-version = "1.0.0"
-path = "../native/build/libs/data.xmldata-native-1.0.0.jar"
+version = "1.0.1"
+path = "../native/build/libs/data.xmldata-native-1.0.1-SNAPSHOT.jar"
-[[platform.java17.dependency]]
+[[platform.java21.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "constraint-native"
-version = "1.5.0"
-path = "./lib/constraint-native-1.5.0.jar"
+version = "1.6.0"
+path = "./lib/constraint-native-1.6.0-20241113-090900-d276ad5.jar"
diff --git a/ballerina/CompilerPlugin.toml b/ballerina/CompilerPlugin.toml
index 1669a30..d69411d 100644
--- a/ballerina/CompilerPlugin.toml
+++ b/ballerina/CompilerPlugin.toml
@@ -3,4 +3,4 @@ id = "constraint-compiler-plugin"
class = "io.ballerina.lib.data.xmldata.compiler.XmldataCompilerPlugin"
[[dependency]]
-path = "../compiler-plugin/build/libs/data.xmldata-compiler-plugin-1.0.0.jar"
+path = "../compiler-plugin/build/libs/data.xmldata-compiler-plugin-1.0.1-SNAPSHOT.jar"
diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml
index 81e9251..aed09f8 100644
--- a/ballerina/Dependencies.toml
+++ b/ballerina/Dependencies.toml
@@ -5,12 +5,12 @@
[ballerina]
dependencies-toml-version = "2"
-distribution-version = "2201.10.0"
+distribution-version = "2201.11.0-20241112-214900-6b80ab87"
[[package]]
org = "ballerina"
name = "constraint"
-version = "1.5.0"
+version = "1.6.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
@@ -22,7 +22,7 @@ modules = [
[[package]]
org = "ballerina"
name = "data.xmldata"
-version = "1.0.0"
+version = "1.0.1"
dependencies = [
{org = "ballerina", name = "constraint"},
{org = "ballerina", name = "io"},
@@ -116,7 +116,7 @@ modules = [
[[package]]
org = "ballerina"
name = "time"
-version = "2.4.1"
+version = "2.6.0"
scope = "testOnly"
dependencies = [
{org = "ballerina", name = "jballerina.java"}
diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml
index e881ae9..6f8db8a 100644
--- a/build-config/resources/Ballerina.toml
+++ b/build-config/resources/Ballerina.toml
@@ -9,13 +9,13 @@ license = ["Apache-2.0"]
distribution = "2201.10.0"
export = ["data.xmldata"]
-[[platform.java17.dependency]]
+[[platform.java21.dependency]]
groupId = "io.ballerina.lib"
artifactId = "data-native"
version = "@toml.version@"
path = "../native/build/libs/data.xmldata-native-@project.version@.jar"
-[[platform.java17.dependency]]
+[[platform.java21.dependency]]
groupId = "io.ballerina.stdlib"
artifactId = "constraint-native"
version = "@constraint.version@"
diff --git a/compiler-plugin-test/build.gradle b/compiler-plugin-test/build.gradle
index 6a96468..ec3b0a1 100644
--- a/compiler-plugin-test/build.gradle
+++ b/compiler-plugin-test/build.gradle
@@ -49,8 +49,11 @@ checkstyle {
checkstyleTest.dependsOn(":checkstyle:downloadCheckstyleRuleFiles")
spotbugsTest {
- effort "max"
- reportLevel "low"
+ def classLoader = plugins["com.github.spotbugs"].class.classLoader
+ def SpotBugsConfidence = classLoader.findLoadedClass("com.github.spotbugs.snom.Confidence")
+ def SpotBugsEffort = classLoader.findLoadedClass("com.github.spotbugs.snom.Effort")
+ effort = SpotBugsEffort.MAX
+ reportLevel = SpotBugsConfidence.LOW
reportsDir = file("$project.buildDir/reports/spotbugs")
reports {
html.enabled true
diff --git a/compiler-plugin/build.gradle b/compiler-plugin/build.gradle
index 78ae721..7192800 100644
--- a/compiler-plugin/build.gradle
+++ b/compiler-plugin/build.gradle
@@ -47,8 +47,11 @@ checkstyle {
checkstyleMain.dependsOn(":checkstyle:downloadCheckstyleRuleFiles")
spotbugsMain {
- effort "max"
- reportLevel "low"
+ def classLoader = plugins["com.github.spotbugs"].class.classLoader
+ def SpotBugsConfidence = classLoader.findLoadedClass("com.github.spotbugs.snom.Confidence")
+ def SpotBugsEffort = classLoader.findLoadedClass("com.github.spotbugs.snom.Effort")
+ effort = SpotBugsEffort.MAX
+ reportLevel = SpotBugsConfidence.LOW
reportsDir = file("$project.buildDir/reports/spotbugs")
reports {
html.enabled true
diff --git a/gradle.properties b/gradle.properties
index f92a9e9..91d43e8 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,18 +1,18 @@
org.gradle.caching=true
group=io.ballerina.lib
version=1.0.1-SNAPSHOT
-ballerinaLangVersion=2201.10.0
+ballerinaLangVersion=2201.11.0-20241112-214900-6b80ab87
checkstyleToolVersion=10.12.0
puppycrawlCheckstyleVersion=10.12.0
testngVersion=7.6.1
slf4jVersion=2.0.7
-githubSpotbugsVersion=5.0.14
+githubSpotbugsVersion=6.0.18
githubJohnrengelmanShadowVersion=8.1.1
underCouchDownloadVersion=4.0.4
researchgateReleaseVersion=2.8.0
ballerinaGradlePluginVersion=2.0.1
-stdlibIoVersion=1.6.1
-stdlibTimeVersion=2.4.0
-stdlibConstraintVersion=1.5.0
+stdlibIoVersion=1.6.2-20241112-233100-995cf5f
+stdlibTimeVersion=2.6.0-20241113-073800-201b904
+stdlibConstraintVersion=1.6.0-20241113-090900-d276ad5
diff --git a/native/build.gradle b/native/build.gradle
index ceb83f2..8398a3a 100644
--- a/native/build.gradle
+++ b/native/build.gradle
@@ -51,9 +51,12 @@ tasks.withType(Checkstyle) {
}
spotbugsMain {
- enabled=false
- effort "max"
- reportLevel "low"
+ def classLoader = plugins["com.github.spotbugs"].class.classLoader
+ def SpotBugsConfidence = classLoader.findLoadedClass("com.github.spotbugs.snom.Confidence")
+ def SpotBugsEffort = classLoader.findLoadedClass("com.github.spotbugs.snom.Effort")
+ enabled = false
+ effort = SpotBugsEffort.MAX
+ reportLevel = SpotBugsConfidence.LOW
reportsDir = file("$project.buildDir/reports/spotbugs")
reports {
html.enabled true
diff --git a/native/src/main/java/io/ballerina/lib/data/xmldata/FromString.java b/native/src/main/java/io/ballerina/lib/data/xmldata/FromString.java
index d48b942..57d3a2f 100644
--- a/native/src/main/java/io/ballerina/lib/data/xmldata/FromString.java
+++ b/native/src/main/java/io/ballerina/lib/data/xmldata/FromString.java
@@ -20,12 +20,12 @@
import io.ballerina.lib.data.xmldata.utils.DiagnosticErrorCode;
import io.ballerina.lib.data.xmldata.utils.DiagnosticLog;
-import io.ballerina.runtime.api.PredefinedTypes;
-import io.ballerina.runtime.api.TypeTags;
import io.ballerina.runtime.api.creators.TypeCreator;
import io.ballerina.runtime.api.creators.ValueCreator;
+import io.ballerina.runtime.api.types.PredefinedTypes;
import io.ballerina.runtime.api.types.ReferenceType;
import io.ballerina.runtime.api.types.Type;
+import io.ballerina.runtime.api.types.TypeTags;
import io.ballerina.runtime.api.types.UnionType;
import io.ballerina.runtime.api.utils.TypeUtils;
import io.ballerina.runtime.api.values.BDecimal;
diff --git a/native/src/main/java/io/ballerina/lib/data/xmldata/io/BallerinaByteBlockInputStream.java b/native/src/main/java/io/ballerina/lib/data/xmldata/io/BallerinaByteBlockInputStream.java
index 4811f56..9a076a0 100644
--- a/native/src/main/java/io/ballerina/lib/data/xmldata/io/BallerinaByteBlockInputStream.java
+++ b/native/src/main/java/io/ballerina/lib/data/xmldata/io/BallerinaByteBlockInputStream.java
@@ -21,10 +21,7 @@
import io.ballerina.lib.data.xmldata.utils.DiagnosticErrorCode;
import io.ballerina.lib.data.xmldata.utils.DiagnosticLog;
import io.ballerina.runtime.api.Environment;
-import io.ballerina.runtime.api.async.Callback;
-import io.ballerina.runtime.api.async.StrandMetadata;
import io.ballerina.runtime.api.types.MethodType;
-import io.ballerina.runtime.api.types.Type;
import io.ballerina.runtime.api.values.BArray;
import io.ballerina.runtime.api.values.BError;
import io.ballerina.runtime.api.values.BMap;
@@ -34,10 +31,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
-import java.util.Map;
-import java.util.concurrent.Semaphore;
import java.util.concurrent.atomic.AtomicBoolean;
-import java.util.function.Consumer;
/**
* Java Input Stream based on Ballerina byte block stream. stream
@@ -49,28 +43,19 @@ public class BallerinaByteBlockInputStream extends InputStream {
private final BObject iterator;
private final Environment env;
private final String nextMethodName;
- private final Type returnType;
- private final String strandName;
- private final StrandMetadata metadata;
- private final Map properties;
private final AtomicBoolean done = new AtomicBoolean(false);
private final MethodType closeMethod;
- private final Consumer