Skip to content

Commit 92bdf4e

Browse files
authored
docs: Update DEVELOPMENT.md (#3126)
due to changes in googleapis/WORKSPACE [here](googleapis/googleapis@cf16946), adjust to dev guide.
1 parent 979ac86 commit 92bdf4e

File tree

1 file changed

+23
-28
lines changed

1 file changed

+23
-28
lines changed

gapic-generator-java/DEVELOPMENT.md

+23-28
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,7 @@ To generate a production GAPIC API:
9999
100100
Replace the following section in googleapis
101101
```
102-
_gapic_generator_java_version = "2.13.0"
103-
104-
maven_install(
105-
artifacts = [
106-
"com.google.api:gapic-generator-java:" + _gapic_generator_java_version,
107-
],
108-
#Update this False for local development
109-
fail_on_missing_checksum = True,
110-
repositories = [
111-
"m2Local",
112-
"https://repo.maven.apache.org/maven2/",
113-
]
114-
)
102+
_gapic_generator_java_version = "2.43.0"
115103
116104
http_archive(
117105
name = "gapic_generator_java",
@@ -129,20 +117,8 @@ To generate a production GAPIC API:
129117
130118
to
131119
```
132-
_gapic_generator_java_version = "2.15.4-SNAPSHOT"
133-
134-
maven_install(
135-
artifacts = [
136-
"com.google.api:gapic-generator-java:" + _gapic_generator_java_version,
137-
],
138-
#Update this False for local development
139-
fail_on_missing_checksum = False,
140-
repositories = [
141-
"m2Local",
142-
"https://repo.maven.apache.org/maven2/",
143-
]
144-
)
145-
120+
_gapic_generator_java_version = "2.43.1-SNAPSHOT"
121+
146122
local_repository(
147123
name = "gapic_generator_java",
148124
path = "/absolute/path/to/your/local/sdk-platform-java",
@@ -155,7 +131,26 @@ To generate a production GAPIC API:
155131
)
156132
```
157133
158-
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
134+
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
135+
136+
Then update `fail_on_missing_checksum = False` in this `maven_install` target:
137+
138+
```
139+
maven_install(
140+
artifacts = [
141+
"com.google.api:gapic-generator-java:" + _gapic_generator_java_version,
142+
] + PROTOBUF_MAVEN_ARTIFACTS +
143+
IO_GRPC_GRPC_JAVA_ARTIFACTS,
144+
generate_compat_repositories = True,
145+
override_targets = IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS,
146+
#Update this False for local development
147+
fail_on_missing_checksum = True,
148+
repositories = [
149+
"m2Local",
150+
"https://repo.maven.apache.org/maven2/",
151+
]
152+
)
153+
```
159154
160155
3. Build the new target.
161156

0 commit comments

Comments
 (0)