Skip to content

Commit e9780fb

Browse files
authored
[build] add missing sonatype information (#557)
Per https://central.sonatype.org/pages/requirements.html generated `pom.xml` file should contain following metadata: * coordinates (i.e. groupId, artifactId and version) * project name (adding) * project description (adding) * project url * license * developer info * scm
1 parent 8535bef commit e9780fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ subprojects {
118118
publications {
119119
create<MavenPublication>("mavenJava") {
120120
pom {
121+
name.set("${currentProject.group}:${currentProject.name}")
121122
url.set("https://github.com/ExpediaGroup/graphql-kotlin")
122123
licenses {
123124
license {
@@ -142,6 +143,12 @@ subprojects {
142143
developerConnection.set("scm:git:git://github.com/ExpediaGroup/graphql-kotlin.git")
143144
url.set("https://github.com/ExpediaGroup/graphql-kotlin")
144145
}
146+
147+
// child projects need to be evaluated before their description can be read
148+
val mavenPom = this
149+
afterEvaluate {
150+
mavenPom.description.set(currentProject.description)
151+
}
145152
}
146153
from(jarComponent)
147154
artifact(sourcesJar.get())

0 commit comments

Comments
 (0)