Vsevolod Tolstopyatov | 0f15812 | 2020-04-29 23:35:41 +0300 | [diff] [blame^] | 1 | /* |
| 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 | |
| 7 | import org.gradle.api.Project |
| 8 | import org.gradle.api.provider.Property |
| 9 | import org.gradle.api.publish.maven.MavenPom |
| 10 | |
| 11 | // --------------- pom configuration --------------- |
| 12 | |
| 13 | fun 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 | |
| 40 | private infix fun <T> Property<T>.by(value: T) { |
| 41 | set(value) |
| 42 | } |