Градл сборка с javadoc

java {
    withJavadocJar()
    // and/or analogously use “withSourcesJar()” to get a “sourcesJar” task
}
Daschi