Skip to content

Commit 8fe6fe6

Browse files
authored
chore: Migrate pubsub synth.py to bazel (#124)
This PR migrates only synth.py but does not commit the regenerated files. The generation was tested and it works, the updated files are not commited due to breaking changes not related to bazel migration.
1 parent 26aec5d commit 8fe6fe6

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

synth.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,19 @@
1515
"""This script is used to synthesize generated parts of this library."""
1616

1717
import synthtool as s
18-
import synthtool.gcp as gcp
1918
import synthtool.languages.java as java
2019

2120
AUTOSYNTH_MULTIPLE_COMMITS = True
2221

23-
gapic = gcp.GAPICGenerator()
24-
2522
service = 'pubsub'
2623
versions = ['v1']
27-
config_pattern = '/google/pubsub/artman_pubsub.yaml'
2824

2925
for version in versions:
30-
java.gapic_library(
26+
java.bazel_library(
3127
service=service,
3228
version=version,
33-
config_pattern=config_pattern,
34-
package_pattern='com.google.{service}.{version}',
35-
gapic=gapic,
29+
proto_path=f'google/{service}/{version}',
30+
bazel_target=f'//google/{service}/{version}:google-cloud-{service}-{version}-java',
3631
)
3732
s.replace(
3833
'**/stub/SubscriberStubSettings.java',

0 commit comments

Comments
 (0)