Skip to content

Commit

Permalink
ci: configure maven publication
Browse files Browse the repository at this point in the history
  • Loading branch information
sabberworm committed Oct 16, 2024
1 parent daf3a8c commit 0e6b32a
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,27 @@ aem {
}
}
}

publishing {
repositories {
val mavenPublishUser: String? by project
val mavenPublishPassword: String? by project
if (mavenPublishUser != null && mavenPublishPassword != null) {
maven {
name = "GitHub"
url = uri("https://maven.pkg.github.com/swisscom/JCR-Hopper")
credentials {
username = mavenPublishUser
password = mavenPublishPassword
}
}
}
}

publications {
create<MavenPublication>("hopper") {
artifact(tasks.packageCompose)
from(components["java"])
}
}
}

0 comments on commit 0e6b32a

Please sign in to comment.