File tree 3 files changed +43
-40
lines changed
3 files changed +43
-40
lines changed Original file line number Diff line number Diff line change
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
+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
apply plugin : ' maven'
8
8
apply plugin : ' maven-publish'
9
9
10
- apply from : project. rootProject. file(' gradle/maven-central.gradle' )
11
-
12
10
// ------------- tasks
13
11
14
12
def isMultiplatform = project. name == " kotlinx-coroutines-core"
@@ -64,7 +62,7 @@ publishing {
64
62
}
65
63
66
64
publications. all {
67
- pom . withXml( configureMavenCentralMetadata)
65
+ MavenCentralKt . configureMavenCentralMetadata(pom, project )
68
66
69
67
// add empty javadocs (no need for MPP root publication which publishes only pom file)
70
68
if (it. name != ' kotlinMultiplatform' && ! isBom) {
You can’t perform that action at this time.
0 commit comments