From 524006a6c346dc1f7b13eb1f8646372a4f651294 Mon Sep 17 00:00:00 2001 From: TharmiganK Date: Thu, 26 Sep 2024 16:40:54 +0530 Subject: [PATCH 1/2] Publish ballerina openapi core to github --- openapi-core/build.gradle | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/openapi-core/build.gradle b/openapi-core/build.gradle index 502cdc4f5..c977e49fb 100644 --- a/openapi-core/build.gradle +++ b/openapi-core/build.gradle @@ -134,3 +134,27 @@ compileJava { classpath = files() } } + +publishing { + publications { + mavenJava(MavenPublication) { + groupId "io.ballerina.openapi" + artifactId "core" + version = githubReleaseVersion + artifact jar + } + } + + repositories { + maven { + name = "GitHubPackages" + url = uri("https://maven.pkg.github.com/ballerina-platform/openapi-tools") + credentials { + username = System.getenv("packageUser") + password = System.getenv("packagePAT") + } + } + } +} + +publish.dependsOn build From 4166bd2370de9df3745bc6ebedbda63e6bc30170 Mon Sep 17 00:00:00 2001 From: TharmiganK Date: Thu, 26 Sep 2024 16:42:14 +0530 Subject: [PATCH 2/2] Fix release version --- openapi-core/build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openapi-core/build.gradle b/openapi-core/build.gradle index c977e49fb..80220c5de 100644 --- a/openapi-core/build.gradle +++ b/openapi-core/build.gradle @@ -140,7 +140,7 @@ publishing { mavenJava(MavenPublication) { groupId "io.ballerina.openapi" artifactId "core" - version = githubReleaseVersion + version = project.version artifact jar } }