Skip to content

Commit 982e800

Browse files
author
Erik Räni
committed
Add missing sourcesJar
1 parent f120cbe commit 982e800

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

build.gradle

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,15 @@ if(hasProperty('target') && target == 'android') {
9191
main = System.getProperty('mainClass')
9292
classpath = sourceSets.main.runtimeClasspath
9393
}
94+
95+
task sourcesJar(type: Jar, dependsOn: classes) {
96+
classifier = 'sources'
97+
from sourceSets.main.allSource
98+
}
99+
100+
artifacts {
101+
archives sourcesJar
102+
}
94103
}
95104

96105
dependencies {
@@ -127,4 +136,3 @@ bintray {
127136
}
128137
}
129138
}
130-

0 commit comments

Comments
 (0)