From aa2765bab8a18e2ca17c6b91d0c4788523585e3f Mon Sep 17 00:00:00 2001 From: Vyacheslav Gerasimov Date: Mon, 28 Oct 2019 16:35:39 +0300 Subject: [PATCH] Build: Setup pom for KotlinPlugin maven publication --- gradle/kotlinPluginPublication.gradle.kts | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gradle/kotlinPluginPublication.gradle.kts b/gradle/kotlinPluginPublication.gradle.kts index 4b4232f6d55..96c2654fc7c 100644 --- a/gradle/kotlinPluginPublication.gradle.kts +++ b/gradle/kotlinPluginPublication.gradle.kts @@ -6,6 +6,31 @@ configure { val artifactName = if (project.name == "idea-plugin") "kotlin-plugin" else project.name artifactId = "$artifactName-${IdeVersionConfigurator.currentIde.name.toLowerCase()}" from(components["java"]) + + pom { + name.set("${project.group}:$artifactId") + packaging = "jar" + description.set(project.description) + url.set("https://kotlinlang.org/") + licenses { + license { + name.set("The Apache License, Version 2.0") + url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") + } + } + scm { + url.set("https://github.com/JetBrains/kotlin") + connection.set("scm:git:https://github.com/JetBrains/kotlin.git") + developerConnection.set("scm:git:https://github.com/JetBrains/kotlin.git") + } + developers { + developer { + name.set("Kotlin Team") + organization.set("JetBrains") + organizationUrl.set("https://www.jetbrains.com") + } + } + } } }