From 4c1a9185c55f4e61dafd08a4dedb7f12426d1275 Mon Sep 17 00:00:00 2001 From: Thisaru Guruge Date: Wed, 10 Dec 2025 18:07:51 +0530 Subject: [PATCH 1/3] [Automated] Update the toml files --- ballerina/Ballerina.toml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ballerina/Ballerina.toml b/ballerina/Ballerina.toml index 5c43fcf..344d7a3 100644 --- a/ballerina/Ballerina.toml +++ b/ballerina/Ballerina.toml @@ -1,10 +1,10 @@ [package] org = "ballerinax" name = "confluent.cregistry" -version = "0.4.2" +version = "0.4.3" authors = ["Ballerina"] export=["confluent.cregistry"] -keywords = ["confluent", "schema_registry", "avro", "serdes"] +keywords = ["schema_registry", "avro", "serdes", "Vendor/Confluent", "Area/Database", "Type/Connector"] repository = "https://github.com/ballerina-platform/module-ballerinax-confluent.cregistry" license = ["Apache-2.0"] distribution = "2201.11.0" @@ -15,8 +15,8 @@ graalvmCompatible = true [[platform.java21.dependency]] groupId = "io.ballerina.lib" artifactId = "schema-registry-native" -version = "0.4.2" -path = "../native/build/libs/confluent.cregistry-native-0.4.2.jar" +version = "0.4.3" +path = "../native/build/libs/confluent.cregistry-native-0.4.3-SNAPSHOT.jar" [[platform.java21.dependency]] groupId = "io.confluent" From 6f38a064db98a2a1b5bbd33249745284a9d4f5d2 Mon Sep 17 00:00:00 2001 From: Thisaru Guruge Date: Wed, 10 Dec 2025 18:12:15 +0530 Subject: [PATCH 2/3] [Automated] Update the toml files --- ballerina/Dependencies.toml | 53 +++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 20 deletions(-) diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index aceb782..ae753b1 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -5,12 +5,12 @@ [ballerina] dependencies-toml-version = "2" -distribution-version = "2201.11.0" +distribution-version = "2201.12.10" [[package]] org = "ballerina" name = "auth" -version = "2.13.0" +version = "2.14.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "crypto"}, @@ -23,7 +23,7 @@ dependencies = [ [[package]] org = "ballerina" name = "cache" -version = "3.9.0" +version = "3.10.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "constraint"}, @@ -35,7 +35,7 @@ dependencies = [ [[package]] org = "ballerina" name = "constraint" -version = "1.6.0" +version = "1.7.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"} @@ -44,7 +44,7 @@ dependencies = [ [[package]] org = "ballerina" name = "crypto" -version = "2.8.0" +version = "2.10.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"}, @@ -54,7 +54,7 @@ dependencies = [ [[package]] org = "ballerina" name = "data.jsondata" -version = "1.0.0" +version = "1.1.3" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"}, @@ -64,7 +64,7 @@ dependencies = [ [[package]] org = "ballerina" name = "file" -version = "1.11.0" +version = "1.12.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "io"}, @@ -76,7 +76,7 @@ dependencies = [ [[package]] org = "ballerina" name = "http" -version = "2.13.8" +version = "2.14.8" scope = "testOnly" dependencies = [ {org = "ballerina", name = "auth"}, @@ -110,7 +110,7 @@ modules = [ [[package]] org = "ballerina" name = "io" -version = "1.7.0" +version = "1.8.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"}, @@ -128,7 +128,7 @@ modules = [ [[package]] org = "ballerina" name = "jwt" -version = "2.14.0" +version = "2.15.1" scope = "testOnly" dependencies = [ {org = "ballerina", name = "cache"}, @@ -236,7 +236,7 @@ dependencies = [ [[package]] org = "ballerina" name = "log" -version = "2.11.0" +version = "2.14.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "io"}, @@ -248,7 +248,7 @@ dependencies = [ [[package]] org = "ballerina" name = "mime" -version = "2.11.0" +version = "2.12.1" scope = "testOnly" dependencies = [ {org = "ballerina", name = "io"}, @@ -260,7 +260,7 @@ dependencies = [ [[package]] org = "ballerina" name = "oauth2" -version = "2.13.0" +version = "2.14.1" scope = "testOnly" dependencies = [ {org = "ballerina", name = "cache"}, @@ -274,7 +274,7 @@ dependencies = [ [[package]] org = "ballerina" name = "observe" -version = "1.4.0" +version = "1.6.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"} @@ -283,7 +283,7 @@ dependencies = [ [[package]] org = "ballerina" name = "os" -version = "1.9.0" +version = "1.10.1" scope = "testOnly" dependencies = [ {org = "ballerina", name = "io"}, @@ -293,11 +293,12 @@ dependencies = [ [[package]] org = "ballerina" name = "task" -version = "2.6.0" +version = "2.11.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"}, - {org = "ballerina", name = "time"} + {org = "ballerina", name = "time"}, + {org = "ballerina", name = "uuid"} ] [[package]] @@ -317,7 +318,7 @@ modules = [ [[package]] org = "ballerina" name = "time" -version = "2.6.0" +version = "2.8.0" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"} @@ -326,16 +327,28 @@ dependencies = [ [[package]] org = "ballerina" name = "url" -version = "2.5.0" +version = "2.6.1" scope = "testOnly" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] +[[package]] +org = "ballerina" +name = "uuid" +version = "1.10.0" +scope = "testOnly" +dependencies = [ + {org = "ballerina", name = "crypto"}, + {org = "ballerina", name = "jballerina.java"}, + {org = "ballerina", name = "lang.int"}, + {org = "ballerina", name = "time"} +] + [[package]] org = "ballerinax" name = "confluent.cregistry" -version = "0.4.2" +version = "0.4.3" dependencies = [ {org = "ballerina", name = "http"}, {org = "ballerina", name = "jballerina.java"}, From cdb67947b4eb766d44496547e591eee4ff7ea65f Mon Sep 17 00:00:00 2001 From: Thisaru Guruge Date: Wed, 10 Dec 2025 18:12:15 +0530 Subject: [PATCH 3/3] Update files --- ballerina/Module.md | 63 --------------------------- ballerina/{Package.md => README.md} | 2 +- build-config/resources/Ballerina.toml | 2 +- 3 files changed, 2 insertions(+), 65 deletions(-) delete mode 100644 ballerina/Module.md rename ballerina/{Package.md => README.md} (98%) diff --git a/ballerina/Module.md b/ballerina/Module.md deleted file mode 100644 index 28ec6ee..0000000 --- a/ballerina/Module.md +++ /dev/null @@ -1,63 +0,0 @@ -## Overview - -[Confluent Schema Registry](https://docs.confluent.io/platform/current/schema-registry/) serves as a centralized repository for managing Avro schemas, ensuring data consistency and compatibility in serialization and deserialization processes. - -The Ballerina Confluent Schema Registry connector integrates with Confluent's Avro Schema Registry, providing users to efficiently manage schemas within Ballerina applications. - -## Quickstart - -To use the Confluent schema registry connector in your Ballerina project, modify the `.bal` file as follows. - -### Step 1: Import the module - -Import the `ballerinax/confluent.cregistry` module into your Ballerina project. - -```ballerina -import ballerinax/confluent.cregistry; -``` - -### Step 2: Instantiate a new connector - -```ballerina -configurable string schemaRegistryUrl = ?; -configurable string apiKey = ?; -configurable string apiSecret = ?; -configurable string truststorePath = ?; -configurable string truststorePassword = ?; - -cregistry:Client schemaRegistryClient = check new ( - baseUrl = schemaRegistryUrl, - originals = { - "basic.auth.credentials.source": "USER_INFO", - "basic.auth.user.info": string `${apiKey}:${apiSecret}` - // Truststore configurations are optional when the schema registry's HTTP(S) endpoint is secured with a publicly trusted certificate. - "schema.registry.ssl.truststore.location": truststorePath, - "schema.registry.ssl.truststore.password": truststorePassword, - } -); -``` - -### Step 3: Invoke the connector operation - -You can now utilize the operations available within the connector. - -```ballerina -public function main() returns error? { - string schema = string ` - { - "type": "int", - "name" : "value", - "namespace": "data" - }`; - - int registerResult = check schemaRegistryClient.register("subject-name", schema); -} -``` - -### Step 4: Run the Ballerina application - -Use the following command to compile and run the Ballerina program. - -```bash -bal run -``` diff --git a/ballerina/Package.md b/ballerina/README.md similarity index 98% rename from ballerina/Package.md rename to ballerina/README.md index 2cd2d25..924e4dc 100644 --- a/ballerina/Package.md +++ b/ballerina/README.md @@ -46,7 +46,7 @@ public function main() returns error? { string schema = string ` { "type": "int", - "name" : "value", + "name" : "value", "namespace": "data" }`; diff --git a/build-config/resources/Ballerina.toml b/build-config/resources/Ballerina.toml index b9e9a5e..cce7e3f 100644 --- a/build-config/resources/Ballerina.toml +++ b/build-config/resources/Ballerina.toml @@ -4,7 +4,7 @@ name = "confluent.cregistry" version = "@toml.version@" authors = ["Ballerina"] export=["confluent.cregistry"] -keywords = ["confluent", "schema_registry", "avro", "serdes"] +keywords = ["schema_registry", "avro", "serdes", "Vendor/Confluent", "Area/Database", "Type/Connector"] repository = "https://github.com/ballerina-platform/module-ballerinax-confluent.cregistry" license = ["Apache-2.0"] distribution = "2201.11.0"