Skip to content

Commit

Permalink
Merge pull request #1776 from ballerina-platform/publish-core
Browse files Browse the repository at this point in the history
Publish Ballerina OpenAPI core library to GitHub
  • Loading branch information
lnash94 authored Sep 26, 2024
2 parents 3434ba6 + 4166bd2 commit 1f88ade
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions openapi-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 1f88ade

Please sign in to comment.