Skip to content

Commit ca01bca

Browse files
committed
Fix missing project description in publication POMs
1 parent 4275311 commit ca01bca

File tree

1 file changed

+34
-31
lines changed

1 file changed

+34
-31
lines changed

buildSrc/src/main/groovy/project-convention-publish.gradle

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -9,45 +9,48 @@ project.tasks.withType(Sign.class) {
99
it.dependsOn(check)
1010
}
1111

12-
publishing {
13-
publications {
14-
jars(MavenPublication.class) {
15-
project.components.forEach {
16-
from(it)
17-
}
18-
19-
pom {
20-
name = project.name
21-
description = project.description
22-
url = "https://developers.yubico.com/java-webauthn-server/"
12+
// afterEvaluate needed for project.description to be set when this evaluates
13+
project.afterEvaluate {
14+
publishing {
15+
publications {
16+
jars(MavenPublication.class) {
17+
project.components.forEach {
18+
from(it)
19+
}
2320

24-
developers {
25-
developer {
26-
id = "emil"
27-
name = "Emil Lundberg"
28-
21+
pom {
22+
name = project.name
23+
description = project.description
24+
url = "https://developers.yubico.com/java-webauthn-server/"
25+
26+
developers {
27+
developer {
28+
id = "emil"
29+
name = "Emil Lundberg"
30+
31+
}
2932
}
30-
}
3133

32-
licenses {
33-
license {
34-
name = "BSD-license"
35-
comments = "Revised 2-clause BSD license"
34+
licenses {
35+
license {
36+
name = "BSD-license"
37+
comments = "Revised 2-clause BSD license"
38+
}
3639
}
37-
}
3840

39-
scm {
40-
url = "scm:git:git://github.com/Yubico/java-webauthn-server.git"
41-
connection = "scm:git:git://github.com/Yubico/java-webauthn-server.git"
42-
developerConnection = "scm:git:ssh://[email protected]/Yubico/java-webauthn-server.git"
43-
tag = "HEAD"
41+
scm {
42+
url = "scm:git:git://github.com/Yubico/java-webauthn-server.git"
43+
connection = "scm:git:git://github.com/Yubico/java-webauthn-server.git"
44+
developerConnection = "scm:git:ssh://[email protected]/Yubico/java-webauthn-server.git"
45+
tag = "HEAD"
46+
}
4447
}
4548
}
4649
}
4750
}
48-
}
4951

50-
signing {
51-
useGpgCmd()
52-
sign(publishing.publications.jars)
52+
signing {
53+
useGpgCmd()
54+
sign(publishing.publications.jars)
55+
}
5356
}

0 commit comments

Comments
 (0)