Use "sourcesJar" task builder for kotlin-reflect sources

This commit is contained in:
Alexander Udalov
2017-11-23 15:30:29 +01:00
parent 9f3577dc70
commit 79e399942d
2 changed files with 7 additions and 7 deletions
+2 -4
View File
@@ -198,9 +198,8 @@ val relocateCoreSources by task<Copy> {
tasks.getByName("jar").enabled = false
val relocatedSourcesJar by task<Jar> {
val sourcesJar = sourcesJar(sourceSet = null) {
dependsOn(relocateCoreSources)
classifier = "sources"
from(relocatedCoreSrc)
from("$core/reflection.jvm/src")
}
@@ -224,11 +223,10 @@ artifacts {
add(mainJar.name, artifactJar)
add("runtime", artifactJar)
add("archives", artifactJar)
add("archives", relocatedSourcesJar)
}
javadocJar()
dist(fromTask = result) {
from(relocatedSourcesJar)
from(sourcesJar)
}