From f1c196332956114562f6701fdf611a4f98eb142f Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Wed, 22 Mar 2023 15:58:16 -0400 Subject: [PATCH] docs: Update steps to generate a library locally --- gapic-generator-java/DEVELOPMENT.md | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/gapic-generator-java/DEVELOPMENT.md b/gapic-generator-java/DEVELOPMENT.md index 482e143207..8001036264 100644 --- a/gapic-generator-java/DEVELOPMENT.md +++ b/gapic-generator-java/DEVELOPMENT.md @@ -109,16 +109,22 @@ To generate a production GAPIC API: strip_prefix = "gapic-generator-java-%s" % _gapic_generator_java_version, urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_java_version], ) + + # gax-java is part of gapic-generator-java repository + http_archive( + name = "com_google_api_gax_java", + strip_prefix = "gapic-generator-java-%s/gax-java" % _gapic_generator_java_version, + urls = ["https://github.com/googleapis/gapic-generator-java/archive/v%s.zip" % _gapic_generator_java_version], + ) ``` to - ``` - _gapic_generator_java_version = "2.13.1-SNAPSHOT" - + _gapic_generator_java_version = "2.15.4-SNAPSHOT" + maven_install( artifacts = [ - "com.google.api:gapic-generator-java:" + _gapic_generator_java_version, + "com.google.api:gapic-generator-java:" + _gapic_generator_java_version, ], #Update this False for local development fail_on_missing_checksum = False, @@ -128,10 +134,16 @@ To generate a production GAPIC API: ] ) - local_repository( - name = "gapic_generator_java", - path = "/absolute/path/to/your/local/gapic-generator-java", - ) + local_repository( + name = "gapic_generator_java", + path = "/absolute/path/to/your/local/gapic-generator-java", + ) + + # gax-java is part of gapic-generator-java repository + local_repository( + name = "com_google_api_gax_java", + path = "/absolute/path/to/your/local/gapic-generator-java/gax-java", + ) ``` Note: At the time of writing, the gapic-generator version was `2.13.0`. Update the version to the latest version in the pom.xml