Skip to content

Commit

Permalink
feat: Add JavadocJar Task to build.gradle for self service libraries (#…
Browse files Browse the repository at this point in the history
…2593)

Fixes #1367
  • Loading branch information
lqiu96 authored Mar 20, 2024
1 parent 6fb8489 commit 993f5ac
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
9 changes: 9 additions & 0 deletions rules_java_gapic/resources/gradle/client_grpc.gradle.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,15 @@ clean {
delete 'all-jars'
}

task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc
}

artifacts {
archives javadocJar
}

task allJars(type: Copy) {
dependsOn test, jar
into 'all-jars'
Expand Down
9 changes: 9 additions & 0 deletions rules_java_gapic/resources/gradle/client_grpcrest.gradle.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ clean {
delete 'all-jars'
}

task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc
}

artifacts {
archives javadocJar
}

task allJars(type: Copy) {
dependsOn test, jar
into 'all-jars'
Expand Down
9 changes: 9 additions & 0 deletions rules_java_gapic/resources/gradle/client_rest.gradle.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,15 @@ clean {
delete 'all-jars'
}

task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc
}

artifacts {
archives javadocJar
}

task allJars(type: Copy) {
dependsOn test, jar
into 'all-jars'
Expand Down

0 comments on commit 993f5ac

Please sign in to comment.