Skip to content

Commit 79e02bb

Browse files
committed
MPP: Move .pom config to publish-bintray.gradle file
1 parent bddb1d7 commit 79e02bb

File tree

2 files changed

+27
-29
lines changed

2 files changed

+27
-29
lines changed

build.gradle

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,6 @@ buildscript {
2626
}
2727
}
2828

29-
// --------------- pom configuration ---------------
30-
31-
def pomConfig = {
32-
licenses {
33-
license {
34-
name "The Apache Software License, Version 2.0"
35-
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
36-
distribution "repo"
37-
}
38-
}
39-
developers {
40-
developer {
41-
id "JetBrains"
42-
name "JetBrains Team"
43-
organization "JetBrains"
44-
organizationUrl "http://www.jetbrains.com"
45-
}
46-
}
47-
48-
scm {
49-
url "https://github.com/Kotlin/kotlinx.coroutines"
50-
}
51-
}
52-
5329
// --------------- Configure sub-projects with Kotlin sources ---------------
5430

5531
def sourceless = ['site']
@@ -72,10 +48,6 @@ configure(subprojects.findAll { !sourceless.contains(it.name) }) {
7248
if (platform == "jvm") {
7349
sourceCompatibility = 1.6
7450
targetCompatibility = 1.6
75-
76-
tasks.withType(JavaCompile) {
77-
options.encoding = 'UTF-8'
78-
}
7951
}
8052

8153
kotlin.experimental.coroutines "enable"

gradle/publish-bintray.gradle

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ apply plugin: 'maven'
44
apply plugin: 'maven-publish'
55
apply plugin: 'com.jfrog.bintray'
66

7+
// --------------- pom configuration ---------------
8+
9+
def pomConfig = {
10+
licenses {
11+
license {
12+
name "The Apache Software License, Version 2.0"
13+
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
14+
distribution "repo"
15+
}
16+
}
17+
developers {
18+
developer {
19+
id "JetBrains"
20+
name "JetBrains Team"
21+
organization "JetBrains"
22+
organizationUrl "http://www.jetbrains.com"
23+
}
24+
}
25+
26+
scm {
27+
url "https://github.com/Kotlin/kotlinx.coroutines"
28+
}
29+
}
30+
31+
// ------------- tasks
32+
733
task sourcesJar(type: Jar, dependsOn: classes) {
834
classifier = 'sources'
935
from sourceSets.main.allSource
@@ -44,4 +70,4 @@ bintray {
4470

4571
bintrayUpload.doLast {
4672
println("Uploaded $project.name version $project.version")
47-
}
73+
}

0 commit comments

Comments
 (0)