blob: 0d7e18cf1515318d9b9feb1d789e9ef4c7f60d83 [file] [log] [blame]
Vsevolod Tolstopyatov0f158122020-04-29 23:35:41 +03001/*
2 * Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3 */
4
5@file:Suppress("UnstableApiUsage")
6
7import org.gradle.api.Project
8import org.gradle.api.provider.Property
9import org.gradle.api.publish.maven.MavenPom
10
11// --------------- pom configuration ---------------
12
13fun MavenPom.configureMavenCentralMetadata(project: Project) {
14 name by project.name
15 description by "Coroutines support libraries for Kotlin"
16 url by "https://github.com/Kotlin/kotlinx.coroutines"
17
18 licenses {
19 license {
20 name by "The Apache Software License, Version 2.0"
21 url by "https://www.apache.org/licenses/LICENSE-2.0.txt"
22 distribution by "repo"
23 }
24 }
25
26 developers {
27 developer {
28 id by "JetBrains"
29 name by "JetBrains Team"
30 organization by "JetBrains"
31 organizationUrl by "https://www.jetbrains.com"
32 }
33 }
34
35 scm {
36 url by "https://github.com/Kotlin/kotlinx.coroutines"
37 }
38}
39
40private infix fun <T> Property<T>.by(value: T) {
41 set(value)
42}