Skip to content

Commit

Permalink
Add metadata required for MavenCentral
Browse files Browse the repository at this point in the history
  • Loading branch information
floscher committed Jan 28, 2022
1 parent b283df6 commit fcfeecc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions buildSrc/src/main/kotlin/GradleJosmPluginMetadata.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import org.gradle.api.Project
import org.gradle.api.publish.maven.MavenPom

public fun Project.gradleJosmPluginMetadata(): (MavenPom) -> Unit = { pom ->
pom.name.set("gradle-josm-plugin$path")
pom.description.set(
when (this.path) {
when (path) {
":dogfood" ->
"A library that contains functionality, which is on the one hand used by the gradle-josm-plugin, " +
"but on the other hand also used in the process of building the gradle-josm-plugin itself."
Expand All @@ -14,7 +15,7 @@ public fun Project.gradleJosmPluginMetadata(): (MavenPom) -> Unit = { pom ->
"A self-contained Java command line utility for reading and writing GNU gettext files (*.mo and *.po files) " +
"as well as a custom i18n file format used by JOSM (*.lang files)."
":plugin" -> "A Gradle plugin that helps with building plugins for the OpenStreetMap editor JOSM."
else -> TODO("Add module description to pom.xml of project `${this.path}`")
else -> TODO("Add module description to pom.xml of project `${path}`")
}
)
pom.url.set("https://josm.gitlab.io/gradle-josm-plugin")
Expand Down
2 changes: 2 additions & 0 deletions plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ gradlePlugin {
plugins.create("josmPlugin") {
id = project.group.toString()
implementationClass = "org.openstreetmap.josm.gradle.plugin.JosmPlugin"
displayName = "gradle-josm-plugin"
description = "A Gradle plugin for development of JOSM plugins"
}
}

Expand Down

0 comments on commit fcfeecc

Please sign in to comment.