blob: 4f9df6ab756715e93392cb2e7c9528124820e7eb [file] [log] [blame]
Vsevolod Tolstopyatov4ddfc912018-07-12 18:36:02 +03001/*
2 * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
5// --------------- pom configuration ---------------
6
7def pomConfig = {
8 licenses {
9 license {
10 name "The Apache Software License, Version 2.0"
Roman Elizarov63d1d1b2019-02-22 14:40:38 +030011 url "https://www.apache.org/licenses/LICENSE-2.0.txt"
Vsevolod Tolstopyatov4ddfc912018-07-12 18:36:02 +030012 distribution "repo"
13 }
14 }
15 developers {
16 developer {
17 id "JetBrains"
18 name "JetBrains Team"
19 organization "JetBrains"
Roman Elizarov63d1d1b2019-02-22 14:40:38 +030020 organizationUrl "https://www.jetbrains.com"
Vsevolod Tolstopyatov4ddfc912018-07-12 18:36:02 +030021 }
22 }
23
24 scm {
25 url "https://github.com/Kotlin/kotlinx.coroutines"
26 }
27}
28
29project.ext.configureMavenCentralMetadata = {
30 def root = it.asNode()
31 // NOTE: Don't try to move top-level things (especially "description") to the pomConfig block
32 // because they would resolve incorrectly to top-level project properties in Gradle/Groovy
33 root.appendNode('name', project.name)
34 root.appendNode('description', 'Coroutines support libraries for Kotlin')
35 root.appendNode('url', 'https://github.com/Kotlin/kotlinx.coroutines')
36 root.children().last() + pomConfig
37}