Skip to content

Commit

Permalink
Fix bom publishing in maven_central
Browse files Browse the repository at this point in the history
  • Loading branch information
dgeorgiev authored and Stepan Kashintsev committed Sep 18, 2023
1 parent a467f34 commit ed9a56e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ springMockkVersion=3.1.1
wireMockVersion=2.33.2

# Publishing values
githubUrl=https://github.com/
githubUrl=https://github.com/waves-enterprise/
gitHubProject=we-node-client
16 changes: 15 additions & 1 deletion we-node-client-bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ val gitHubProject: String by project
val githubUrl: String by project

plugins {
signing
`maven-publish`
`java-platform`
}
Expand All @@ -20,7 +21,7 @@ dependencies {

publishing {
publications {
create<MavenPublication>("we-node-client-bom") {
create<MavenPublication>("projectBom") {
from(components["javaPlatform"])

pom {
Expand Down Expand Up @@ -48,8 +49,21 @@ publishing {
name.set("Stepan Kashintsev")
email.set("[email protected]")
}
developer {
id.set("donyfutura")
name.set("Daniil Georgiev")
email.set("[email protected]")
}
}
}
}
}
}

signing {
afterEvaluate {
if (!project.version.toString().endsWith("SNAPSHOT")) {
sign(publishing.publications["projectBom"])
}
}
}

0 comments on commit ed9a56e

Please sign in to comment.