Skip to content

Commit 81308cd

Browse files
committed
Set project name and generic description if empty
1 parent 52528a4 commit 81308cd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

kt/build-logic/convention/src/main/kotlin/publish/PublishToMavenCentralPlugin.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ class PublishToMavenCentralPlugin : Plugin<Project> {
7272
publication.pom { mavenPom ->
7373
mavenPom.url.set("https://github.com/utopia-rise/godot-kotlin-jvm.git")
7474

75+
if (mavenPom.name.getOrElse("").isNullOrEmpty()) {
76+
mavenPom.name.set(project.name)
77+
}
78+
if (mavenPom.description.getOrElse("").isNullOrEmpty()) {
79+
mavenPom.description.set(project.description ?: "Godot kotlin jvm module")
80+
}
81+
7582
mavenPom.scm { mavenPomScm ->
7683
mavenPomScm.connection.set("scm:git:https://github.com/utopia-rise/godot-kotlin-jvm")
7784
mavenPomScm.developerConnection.set("scm:git:github.com:utopia-rise/godot-kotlin-jvm.git")

0 commit comments

Comments
 (0)