gradle: Use built-in javadoc and sources jars

This commit is contained in:
Eric Anderson 2020-07-30 13:59:34 -07:00 committed by Eric Anderson
parent 22b5480aed
commit 96ad633868
1 changed files with 3 additions and 11 deletions

View File

@ -492,14 +492,9 @@ subprojects {
}
plugins.withId("java") {
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
java {
withJavadocJar()
withSourcesJar()
}
publishing {
@ -508,9 +503,6 @@ subprojects {
if (project.name != 'grpc-netty-shaded') {
from components.java
}
artifact javadocJar
artifact sourcesJar
}
}
}