Skip to content

Commit

Permalink
docs: Update DEVELOPMENT.md (#3126)
Browse files Browse the repository at this point in the history
due to changes in googleapis/WORKSPACE
[here](googleapis/googleapis@cf16946),
adjust to dev guide.
  • Loading branch information
zhumin8 authored and ldetmer committed Sep 17, 2024
1 parent d80ae9c commit 5bc9823
Showing 1 changed file with 23 additions and 28 deletions.
51 changes: 23 additions & 28 deletions gapic-generator-java/DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,7 @@ To generate a production GAPIC API:

Replace the following section in googleapis
```
_gapic_generator_java_version = "2.13.0"
maven_install(
artifacts = [
"com.google.api:gapic-generator-java:" + _gapic_generator_java_version,
],
#Update this False for local development
fail_on_missing_checksum = True,
repositories = [
"m2Local",
"https://repo.maven.apache.org/maven2/",
]
)
_gapic_generator_java_version = "2.43.0"
http_archive(
name = "gapic_generator_java",
Expand All @@ -129,20 +117,8 @@ To generate a production GAPIC API:

to
```
_gapic_generator_java_version = "2.15.4-SNAPSHOT"
maven_install(
artifacts = [
"com.google.api:gapic-generator-java:" + _gapic_generator_java_version,
],
#Update this False for local development
fail_on_missing_checksum = False,
repositories = [
"m2Local",
"https://repo.maven.apache.org/maven2/",
]
)
_gapic_generator_java_version = "2.43.1-SNAPSHOT"
local_repository(
name = "gapic_generator_java",
path = "/absolute/path/to/your/local/sdk-platform-java",
Expand All @@ -155,7 +131,26 @@ To generate a production GAPIC API:
)
```

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
Note: At the time of writing, the gapic-generator version was `2.43.0`. Update the version to the latest version in the pom.xml

Then update `fail_on_missing_checksum = False` in this `maven_install` target:

```
maven_install(
artifacts = [
"com.google.api:gapic-generator-java:" + _gapic_generator_java_version,
] + PROTOBUF_MAVEN_ARTIFACTS +
IO_GRPC_GRPC_JAVA_ARTIFACTS,
generate_compat_repositories = True,
override_targets = IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS,
#Update this False for local development
fail_on_missing_checksum = True,
repositories = [
"m2Local",
"https://repo.maven.apache.org/maven2/",
]
)
```

3. Build the new target.

Expand Down

0 comments on commit 5bc9823

Please sign in to comment.