Add sourcesJar and javadocJar to artifacts of gradle-tools projects.

(cherry picked from commit 450345b)
This commit is contained in:
Sergey Igushkin
2017-06-23 15:58:20 +03:00
parent a4be282074
commit 1174c7bdd9
@@ -40,6 +40,15 @@ subprojects {
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all { task ->
task.kotlinOptions.freeCompilerArgs += ["-module-name", "${project.name}"]
}
artifacts {
if (tasks.findByName('javadocJar')) {
archives javadocJar
}
if (tasks.findByName('sourcesJar')) {
archives sourcesJar
}
}
}
}