Skip to content

Commit cec8e55

Browse files
committed
fix pomName and description
1 parent c62efb6 commit cec8e55

File tree

11 files changed

+9
-14
lines changed

11 files changed

+9
-14
lines changed

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ allprojects {
2929

3030
subprojects {
3131
version = "2.9.1-SNAPSHOT"
32-
extra["pomName"] =
33-
"Yubico YubiKit " + project.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
32+
extra["pomName"] = "Yubico YubiKit " + project.name.replaceFirstChar { it.titlecase() }
3433
tasks.withType<Javadoc>().configureEach {
3534
(options as? StandardJavadocDocletOptions)?.addStringOption(
3635
"Xdoclint:all,-missing",

buildSrc/src/main/kotlin/project-convention-publishing.gradle.kts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ extensions.configure(PublishingExtension::class.java) {
3434
create<MavenPublication>("maven") {
3535
from(components["java"])
3636
apply(from = rootProject.file("pom.gradle.kts"))
37-
@Suppress("UNCHECKED_CAST")
38-
val pomData = extra["pomData"] as Action<MavenPom>
39-
pom(pomData)
37+
afterEvaluate {
38+
@Suppress("UNCHECKED_CAST")
39+
val pomData = extra["pomData"] as Action<MavenPom>
40+
pom(pomData)
41+
}
4042
}
4143
}
4244
repositories {

desktop/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,5 @@ dependencies {
2323
implementation(libs.hid4java)
2424
}
2525

26-
extra["pomName"] = "Yubico YubiKit Desktop"
2726
description = "This module is the core library desktop implementation and provides functionality to detect a YubiKey plugged in or tapped over NFC and to open an ISO/IEC 7816 connection, using the javax.smartcardio API."
2827

fido/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ dependencies {
2424
implementation(libs.moshi)
2525
}
2626

27-
extra["pomName"] = "Yubico YubiKit " + project.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
2827
description = "This module provides FIDO support for the YubiKit SDK."
2928

management/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,5 @@ dependencies {
2222
api(project(":core"))
2323
}
2424

25-
extra["pomName"] = "Yubico YubiKit Management"
2625
description = "This library provides management functionality of YubiKey which allows to enable or disable applets/slots/transport."
2726

oath/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,4 @@ dependencies {
2222
api(project(":core"))
2323
}
2424

25-
extra["pomName"] = "Yubico YubiKit " + project.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
2625
description = "This library provides OATH functionality of YubiKey which allows to have an authenticator application and store secrets on YubiKey. Provides TOTP or HOTP."

openpgp/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ tasks.test {
2626
systemProperty("org.slf4j.simpleLogger.defaultLogLevel", "trace")
2727
}
2828

29-
extra["pomName"] = "Yubico YubiKit " + project.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
3029
description = "This library provides OpenPGP card functionality for the YubiKey. Specs for the protocol can be found at https://gnupg.org/ftp/specs/"

piv/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ tasks.test {
2626
systemProperty("org.slf4j.simpleLogger.defaultLogLevel", "trace")
2727
}
2828

29-
extra["pomName"] = "Yubico YubiKit " + project.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
3029
description = "This library provides implementation of Personal Identity Verification (PIV) interface specified in NIST SP 800-73 document \"Cryptographic Algorithms and Key Sizes for PIV\". This enables you to perform RSA or ECC sign/decrypt operations using a private key stored on the YubiKey."

pom.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@
1515
*/
1616

1717
import org.gradle.api.publish.maven.MavenPom
18+
import org.gradle.api.Action
1819

19-
extra["pomData"] = org.gradle.api.Action<MavenPom> {
20+
extra["pomData"] = Action<MavenPom> {
2021
name.set(extra["pomName"].toString())
2122
description.set(project.description)
2223
url.set("https://github.com/Yubico/yubikit-android/tree/main/${project.name}")

support/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ dependencies {
2323
api(project(":yubiotp"))
2424
}
2525

26-
extra["pomName"] = "Yubico YubiKit " + project.name.replaceFirstChar { if (it.isLowerCase()) it.titlecase() else it.toString() }
2726
description = "This library provides support functionality for the YubiKit."

0 commit comments

Comments
 (0)