diff --git a/openapi-core/build.gradle b/openapi-core/build.gradle index 502cdc4f5..80220c5de 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 = project.version + 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