Skip to content

Commit

Permalink
build gradle: publishing to github
Browse files Browse the repository at this point in the history
  • Loading branch information
Peva Blanchard committed Oct 30, 2023
1 parent 3b16b06 commit ff31890
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ tasks.test {
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kleis-technology/lca-plugin")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("core") {
groupId = groupId
Expand Down
10 changes: 10 additions & 0 deletions grammar/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ tasks {
}

publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kleis-technology/lca-plugin")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("grammar") {
groupId = groupId
Expand Down

0 comments on commit ff31890

Please sign in to comment.