diff --git a/ballerina/Dependencies.toml b/ballerina/Dependencies.toml index 404164e..22a31f2 100644 --- a/ballerina/Dependencies.toml +++ b/ballerina/Dependencies.toml @@ -362,7 +362,7 @@ modules = [ [[package]] org = "ballerinax" name = "confluent.cregistry" -version = "0.2.0" +version = "0.2.1" dependencies = [ {org = "ballerina", name = "jballerina.java"} ] diff --git a/ballerina/build.gradle b/ballerina/build.gradle index ef8e232..e4c63d4 100644 --- a/ballerina/build.gradle +++ b/ballerina/build.gradle @@ -74,10 +74,29 @@ task commitTomlFiles { } } +publishing { + publications { + maven(MavenPublication) { + artifact source: createArtifactZip, extension: 'zip' + } + } + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/ballerina-platform/module-${packageOrg}-${packageName}") + credentials { + username = System.getenv("publishUser") + password = System.getenv("publishPAT") + } + } + } +} + clean { delete 'build' } +build.dependsOn "generatePomFileForMavenPublication" updateTomlFiles.dependsOn copyStdlibs build.dependsOn copyToLib diff --git a/build.gradle b/build.gradle index 3e71de2..eab5804 100644 --- a/build.gradle +++ b/build.gradle @@ -50,7 +50,7 @@ allprojects { } maven { - url = 'https://maven.pkg.github.com/ballerina-platform/ballerina-lang' + url = 'https://maven.pkg.github.com/ballerina-platform/*' credentials { username System.getenv("packageUser") password System.getenv("packagePAT") @@ -78,6 +78,8 @@ subprojects { ballerinaStdLibs "io.ballerina.stdlib:io-ballerina:${stdlibIoVersion}" ballerinaStdLibs "io.ballerina.lib:avro-ballerina:${stdlibAvroVersion}" ballerinaStdLibs "io.ballerina.stdlib:http-ballerina:${stdlibHttpVersion}" + ballerinaStdLibs "io.ballerina.lib:confluent.cregistry-ballerina:0.2.1" + } } diff --git a/gradle.properties b/gradle.properties index a9e1589..271ad77 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ spotbugsPluginVersion=5.0.14 shadowJarPluginVersion=8.1.1 downloadPluginVersion=5.4.0 releasePluginVersion=2.8.0 -ballerinaGradlePluginVersion=3.0.0 +ballerinaGradlePluginVersion=2.2.6 jacocoVersion=0.8.10 slf4jVersion=1.7.21