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" + } }