Add sourcesJar and javadocJar to artifacts of gradle-tools projects.
(cherry picked from commit 450345b)
This commit is contained in:
@@ -40,6 +40,15 @@ subprojects {
|
|||||||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all { task ->
|
tasks.withType(org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile).all { task ->
|
||||||
task.kotlinOptions.freeCompilerArgs += ["-module-name", "${project.name}"]
|
task.kotlinOptions.freeCompilerArgs += ["-module-name", "${project.name}"]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
artifacts {
|
||||||
|
if (tasks.findByName('javadocJar')) {
|
||||||
|
archives javadocJar
|
||||||
|
}
|
||||||
|
if (tasks.findByName('sourcesJar')) {
|
||||||
|
archives sourcesJar
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user