Skip to content

Commit

Permalink
fix-gradle-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
LarissaASLeite committed Nov 6, 2024
1 parent aa525cc commit 2208145
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,22 @@ configure<SourceSetContainer> {

publishing {
publications {
create<MavenPublication>("myLibrary") {
create<MavenPublication>("github") {
from(components["java"])

groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
}
}

repositories {
maven {
name = "myRepo"
url = uri(layout.buildDirectory.dir("repo"))
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/pagopa/p4pa-payhub-activities")
credentials {
username = System.getenv("GITHUB_ACTOR") ?: "GITHUB_ACTOR"
password = System.getenv("GITHUB_TOKEN")
}
}
}
}

0 comments on commit 2208145

Please sign in to comment.