From 2b73ddd36d226e5547398daaf0e4370e48f4bb46 Mon Sep 17 00:00:00 2001 From: aSemy <897017+aSemy@users.noreply.github.com> Date: Thu, 30 Mar 2023 11:00:09 +0200 Subject: Move POM config to maven-publish convention plugin (#2946) --- .../jetbrains/conventions/maven-publish.gradle.kts | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'build-logic/src/main/kotlin/org/jetbrains/conventions') diff --git a/build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts b/build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts index 7007fd9e..f4baa3e9 100644 --- a/build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts +++ b/build-logic/src/main/kotlin/org/jetbrains/conventions/maven-publish.gradle.kts @@ -26,5 +26,33 @@ publishing { publications.withType().configureEach { artifact(javadocJar) + + pom { + name.convention(provider { "Dokka ${project.name}" }) + description.convention("Dokka is an API documentation engine for Kotlin and Java, performing the same function as Javadoc for Java") + url.convention("https://github.com/Kotlin/dokka") + + licenses { + license { + name.convention("The Apache Software License, Version 2.0") + url.convention("https://www.apache.org/licenses/LICENSE-2.0.txt") + distribution.convention("repo") + } + } + + developers { + developer { + id.convention("JetBrains") + name.convention("JetBrains Team") + organization.convention("JetBrains") + organizationUrl.convention("https://www.jetbrains.com") + } + } + + scm { + connection.convention("scm:git:git://github.com/Kotlin/dokka.git") + url.convention("https://github.com/Kotlin/dokka/tree/master") + } + } } } -- cgit