Skip to content

Commit c983911

Browse files
authored
chore: Migrate logging 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. There is already an open PR with those braking changes: #111
1 parent e3c2b4c commit c983911

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

synth.py

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,19 @@
1414

1515
"""This script is used to synthesize generated parts of this library."""
1616

17-
import synthtool as s
18-
import synthtool.gcp as gcp
1917
import synthtool.languages.java as java
2018

2119
AUTOSYNTH_MULTIPLE_COMMITS = True
2220

23-
gapic = gcp.GAPICGenerator()
24-
2521
service = 'logging'
2622
versions = ['v2']
27-
config_pattern = '/google/logging/artman_logging.yaml'
2823

2924
for version in versions:
30-
library = java.gapic_library(
31-
service=service,
32-
version=version,
33-
config_pattern=config_pattern,
34-
package_pattern='com.google.{service}.{version}',
35-
gapic=gapic,
25+
java.bazel_library(
26+
service=service,
27+
version=version,
28+
proto_path=f'google/{service}/{version}',
29+
bazel_target=f'//google/{service}/{version}:google-cloud-{service}-{version}-java',
3630
)
3731

3832
java.common_templates()

0 commit comments

Comments
 (0)