Skip to content

Commit

Permalink
Set project name and generic description if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
chippmann committed Oct 11, 2023
1 parent 52528a4 commit 81308cd
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ class PublishToMavenCentralPlugin : Plugin<Project> {
publication.pom { mavenPom ->
mavenPom.url.set("https://github.com/utopia-rise/godot-kotlin-jvm.git")

if (mavenPom.name.getOrElse("").isNullOrEmpty()) {
mavenPom.name.set(project.name)
}
if (mavenPom.description.getOrElse("").isNullOrEmpty()) {
mavenPom.description.set(project.description ?: "Godot kotlin jvm module")
}

mavenPom.scm { mavenPomScm ->
mavenPomScm.connection.set("scm:git:https://github.com/utopia-rise/godot-kotlin-jvm")
mavenPomScm.developerConnection.set("scm:git:github.com:utopia-rise/godot-kotlin-jvm.git")
Expand Down

0 comments on commit 81308cd

Please sign in to comment.