Skip to content

Commit

Permalink
Fix missing project description in publication POMs
Browse files Browse the repository at this point in the history
  • Loading branch information
emlun committed Apr 14, 2023
1 parent 4275311 commit ca01bca
Showing 1 changed file with 34 additions and 31 deletions.
65 changes: 34 additions & 31 deletions buildSrc/src/main/groovy/project-convention-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,45 +9,48 @@ project.tasks.withType(Sign.class) {
it.dependsOn(check)
}

publishing {
publications {
jars(MavenPublication.class) {
project.components.forEach {
from(it)
}

pom {
name = project.name
description = project.description
url = "https://developers.yubico.com/java-webauthn-server/"
// afterEvaluate needed for project.description to be set when this evaluates
project.afterEvaluate {
publishing {
publications {
jars(MavenPublication.class) {
project.components.forEach {
from(it)
}

developers {
developer {
id = "emil"
name = "Emil Lundberg"
email = "[email protected]"
pom {
name = project.name
description = project.description
url = "https://developers.yubico.com/java-webauthn-server/"

developers {
developer {
id = "emil"
name = "Emil Lundberg"
email = "[email protected]"
}
}
}

licenses {
license {
name = "BSD-license"
comments = "Revised 2-clause BSD license"
licenses {
license {
name = "BSD-license"
comments = "Revised 2-clause BSD license"
}
}
}

scm {
url = "scm:git:git://github.com/Yubico/java-webauthn-server.git"
connection = "scm:git:git://github.com/Yubico/java-webauthn-server.git"
developerConnection = "scm:git:ssh://[email protected]/Yubico/java-webauthn-server.git"
tag = "HEAD"
scm {
url = "scm:git:git://github.com/Yubico/java-webauthn-server.git"
connection = "scm:git:git://github.com/Yubico/java-webauthn-server.git"
developerConnection = "scm:git:ssh://[email protected]/Yubico/java-webauthn-server.git"
tag = "HEAD"
}
}
}
}
}
}

signing {
useGpgCmd()
sign(publishing.publications.jars)
signing {
useGpgCmd()
sign(publishing.publications.jars)
}
}

1 comment on commit ca01bca

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mutation test results

Package Coverage Stats Prev Prev
Overall 80 % 🔹 1262 🔻 / 1559 🔹 81 % 1265 / 1559
com.yubico.fido.metadata 67 % 🔹 216 🔻 / 318 🔹 68 % 217 / 318
com.yubico.internal.util 46 % 🔻 56 🔻 / 120 🔹 47 % 57 / 120
com.yubico.webauthn 87 % 🔹 558 🔹 / 637 🔹 87 % 558 / 637
com.yubico.webauthn.attestation 92 % 🔹 13 🔹 / 14 🔹 92 % 13 / 14
com.yubico.webauthn.data 93 % 🔹 394 🔻 / 423 🔹 93 % 395 / 423
com.yubico.webauthn.extension.appid 100 % 🏆 13 🔹 / 13 🔹 100 % 13 / 13
com.yubico.webauthn.extension.uvm 50 % 🔹 12 🔹 / 24 🔹 50 % 12 / 24
com.yubico.webauthn.meta 0 % 🔹 0 🔹 / 10 🔹 0 % 0 / 10

Previous run: 4275311 - Diff

Detailed reports: workflow run #211

Please sign in to comment.