blob: 03602e9be548d56ae0103c8f888c0743e4deb1d7 [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"
11 url "http://www.apache.org/licenses/LICENSE-2.0.txt"
12 distribution "repo"
13 }
14 }
15 developers {
16 developer {
17 id "JetBrains"
18 name "JetBrains Team"
19 organization "JetBrains"
20 organizationUrl "http://www.jetbrains.com"
21 }
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}