We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0563cf commit 2bc0a1bCopy full SHA for 2bc0a1b
gradle/publish-bintray.gradle
@@ -4,6 +4,9 @@ apply plugin: 'maven'
4
apply plugin: 'maven-publish'
5
apply plugin: 'com.jfrog.bintray'
6
7
+def platform = platformOf(project)
8
+def coroutines_core = platformLib("kotlinx-coroutines-core", platform)
9
+
10
// --------------- pom configuration ---------------
11
12
def pomConfig = {
@@ -30,9 +33,13 @@ def pomConfig = {
30
33
31
34
// ------------- tasks
32
35
-task sourcesJar(type: Jar, dependsOn: classes) {
36
+task sourcesJar(type: Jar) {
37
classifier = 'sources'
38
from sourceSets.main.allSource
39
+ if (project.name == coroutines_core && platform != "common") {
40
+ // add common source, too
41
+ from rootProject.file("common/$project.name-common/src/main/kotlin")
42
+ }
43
}
44
45
publishing {
0 commit comments