Skip to content

Commit

Permalink
Fix signing
Browse files Browse the repository at this point in the history
  • Loading branch information
lukellmann committed Apr 24, 2023
1 parent 5dee1b5 commit 72481d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions bom/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
`java-platform`
`kord-publishing`
`maven-publish`
}

val me = project
Expand All @@ -27,7 +27,9 @@ dependencies {
}

publishing {
publications.withType<MavenPublication>().configureEach {
publications.register<MavenPublication>(Library.name) {
from(components["javaPlatform"])
}
}

apply(plugin = "kord-publishing")
4 changes: 2 additions & 2 deletions buildSrc/src/main/kotlin/kord-publishing.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ val dokkaJar by tasks.registering(Jar::class) {
publishing {
publications {
withType<MavenPublication>().configureEach {
artifact(dokkaJar)
if (project.name != "bom") artifact(dokkaJar)
groupId = Library.group
artifactId = "kord-$artifactId"
version = Library.version
Expand Down Expand Up @@ -76,6 +76,6 @@ if (!isJitPack && Library.isRelease) {
if (signingKey != null && signingPassword != null) {
useInMemoryPgpKeys(String(Base64.getDecoder().decode(signingKey)), signingPassword)
}
sign(publishing.publications[Library.name])
sign(publishing.publications)
}
}

0 comments on commit 72481d0

Please sign in to comment.