GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — java_gapic_assembly_gradle_pkg rule does not generate javadocs task in client build.gradle · Issue #1367 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

java_gapic_assembly_gradle_pkg rule does not generate javadocs task in client build.gradle #1367

Copy link
Copy link
Closed
#2593
Closed
java_gapic_assembly_gradle_pkg rule does not generate javadocs task in client build.gradle#1367
#2593
Copy link
Assignees
blakeli0
Labels
priority: p4type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@mikaylakonst
mikaylakonst
opened on Feb 16, 2023
Issue body actions

Environment details

  • Programming language: Java

Steps to reproduce

I use bazel to build a java_gapic_assembly_gradle_pkg rule to build a java client library tar:

java_gapic_assembly_gradle_pkg(
    name = "API-v1-java",
    include_samples = True,
    transport = "grpc+rest",
    deps = [
        ":FOO_java_gapic",
        ":FOO_java_grpc",
        ":FOO_java_proto",
        ":FOO_proto",
    ],
)

When java_gapic_assembly_gradle_pkg is used to generate a java client library tar, if you run ./gradlew build from the top-level directory of the extracted tar, it will generate javadocs for proto and grpc, but not for the gapic client

Expected behavior:

When I run ./gradlew build from the top level directory of the extracted tar generated by the java_gapic_assembly_gradle_pkg rule, these javadocs should be generated:

API-v1-java/gapic-API-v1-java/build/docs/javadoc
API-v1-java/grpc-API-v1-java/build/docs/javadoc
API-v1-java/proto-API-v1-java/build/docs/javadoc

Actual behavior:

Only the grpc and proto javadocs are generated, but not the gapic javadocs

Suggested Fix

https://github.com/googleapis/rules_gapic/blob/main/java/resources/gradle/client.gradle.tmpl

https://github.com/googleapis/rules_gapic/blob/main/java/resources/gradle/client_disco.gradle.tmpl

It looks like these are templates that are used by the java_gapic_assembly_gradle_pkg rule to generate the build.gradle file for the gapic client, and they do not contain a task for generating javadocs.

By contrast, the gradle template files for proto and grpc do:

https://github.com/googleapis/rules_gapic/blob/main/java/resources/gradle/proto.gradle.tmpl

https://github.com/googleapis/rules_gapic/blob/main/java/resources/gradle/grpc.gradle.tmpl

Could add this to https://github.com/googleapis/rules_gapic/blob/main/java/resources/gradle/client.gradle.tmpl and https://github.com/googleapis/rules_gapic/blob/main/java/resources/gradle/client_disco.gradle.tmpl

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

artifacts {
  archives javadocJar
}

Activity

  1. mikaylakonst
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Feb 16, 2023
  2. noahdietz
    transferred this issue fromgoogleapis/rules_gapicon Feb 16, 2023
  3. mpeddada1
    assigned
    blakeli0
    on Feb 24, 2023
  4. suztomo
    added 2 commits that reference this issue on Mar 21, 2023

    chore: update java template (#1367) (#627)

    a3378ee

    chore: update java template (#1367) (#749)

    3ee9dc3
  5. blakeli0
    added
    priority: p3Desirable enhancement or fix. May not be included in next release.
    and removed
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 2, 2023
  6. lqiu96
    added
    priority: p4
    and removed
    priority: p3Desirable enhancement or fix. May not be included in next release.
    on Mar 5, 2024
  7. lqiu96
    closed this as completedin #2593on Mar 20, 2024
  8. lqiu96
    added a commit that references this issue on Mar 20, 2024

    feat: Add JavadocJar Task to build.gradle for self service libraries (#…

    993f5ac
  9. chingor13
    added a commit that references this issue on Mar 24, 2026

    feat: Add JavadocJar Task to build.gradle for self service libraries (#…

    a66df18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @blakeli0
    blakeli0

Labels

priority: p4type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.