Skip to content

Commit

Permalink
adds bom to ghp releases
Browse files Browse the repository at this point in the history
Signed-off-by: Oleh Dokuka <[email protected]>
Signed-off-by: Oleh Dokuka <[email protected]>
Signed-off-by: Oleh Dokuka <[email protected]>
  • Loading branch information
OlegDokuka committed Jun 9, 2021
1 parent ee5a934 commit c0ae0f5
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions gradle/github-pkg.gradle
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
subprojects {

plugins.withType(JavaLibraryPlugin) {
plugins.withType(MavenPublishPlugin) {
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rsocket/rsocket-java")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
plugins.withType(MavenPublishPlugin) {
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/rsocket/rsocket-java")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
}

tasks.named("publish").configure {
onlyIf { System.getenv('SKIP_RELEASE') != "true" }
}
tasks.named("publish").configure {
onlyIf { System.getenv('SKIP_RELEASE') != "true" }
}
}
}

0 comments on commit c0ae0f5

Please sign in to comment.