@@ -99,19 +99,7 @@ To generate a production GAPIC API:
99
99
100
100
Replace the following section in googleapis
101
101
```
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"
115
103
116
104
http_archive(
117
105
name = "gapic_generator_java",
@@ -129,20 +117,8 @@ To generate a production GAPIC API:
129
117
130
118
to
131
119
```
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
+
146
122
local_repository(
147
123
name = "gapic_generator_java",
148
124
path = "/absolute/path/to/your/local/sdk-platform-java",
@@ -155,7 +131,26 @@ To generate a production GAPIC API:
155
131
)
156
132
```
157
133
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
+ ```
159
154
160
155
3. Build the new target.
161
156
0 commit comments