@@ -55,24 +55,24 @@ of versions.txt.
55
55
For each module (e.g. ` google-cloud-java/java-asset ` ), the following files/folders
56
56
will be created/modified:
57
57
58
- | Name | Notes |
59
- | :----------------------------| :-------------------------------------------------------------------------|
60
- | google-* / | Source code generated by gapic-generator-java |
61
- | google-* /pom.xml | Only be generated if it does not exist |
62
- | grpc-* / | Source code generated by grpc generator, one per each version |
63
- | grpc-* /pom.xml | Only be generated if it does not exist |
64
- | proto-* / | Source code generated by Protobuf default compiler, one per each version |
65
- | proto-* /pom.xml | Only be generated if it does not exist |
66
- | samples/snippets/generated/ | Only be generated if ` include_samples ` is set to true |
67
- | google-* -bom/pom.xml | Library BOM, only be generated if it does not exist |
68
- | pom.xml | Library parent BOM, only be generated if it does not exist |
69
- | .repo-metadata.json | Always generated from inputs |
70
- | .OwlBot.yaml | Only be generated from a template if it does not exist |
71
- | owlbot.py | Only be generated from a template if it does not exist |
72
- | README.md | Always generated from inputs |
73
- | gapic-libraries-bom/pom.xml | Always generated from inputs |
74
- | pom.xml (repo root dir) | Always generated from inputs |
75
- | versions.txt | New entries will be added if they don’t exist |
58
+ | Name | Notes |
59
+ | :------------------------------------ | :-------------------------------------------------------------------------|
60
+ | google-* / | Source code generated by gapic-generator-java |
61
+ | google-* /pom.xml | Only be generated if it does not exist |
62
+ | grpc-* / | Source code generated by grpc generator, one per each version |
63
+ | grpc-* /pom.xml | Only be generated if it does not exist |
64
+ | proto-* / | Source code generated by Protobuf default compiler, one per each version |
65
+ | proto-* /pom.xml | Only be generated if it does not exist |
66
+ | samples/snippets/generated/ | Only be generated if ` include_samples ` is set to true |
67
+ | google-* -bom/pom.xml | Library BOM, only be generated if it does not exist |
68
+ | pom.xml | Library parent BOM, only be generated if it does not exist |
69
+ | .repo-metadata.json | Always generated from inputs |
70
+ | .OwlBot-hermetic .yaml | Only be generated from a template if it does not exist |
71
+ | owlbot.py | Only be generated from a template if it does not exist |
72
+ | README.md | Always generated from inputs |
73
+ | gapic-libraries-bom/pom.xml | Always generated from inputs |
74
+ | pom.xml (repo root dir) | Always generated from inputs |
75
+ | versions.txt | New entries will be added if they don’t exist |
76
76
77
77
### googleapis commit history
78
78
@@ -97,6 +97,7 @@ They are shared by library level parameters.
97
97
| protobuf_version | No | inferred from the generator if not specified |
98
98
| grpc_version | No | inferred from the generator if not specified |
99
99
| googleapis-commitish | Yes | |
100
+ | libraries_bom_version | Yes | |
100
101
| owlbot-cli-image | Yes | |
101
102
| synthtool-commitish | Yes | |
102
103
| template_excludes | Yes | |
@@ -147,6 +148,7 @@ The GAPIC level parameters define how to generate a GAPIC library.
147
148
gapic_generator_version : 2.34.0
148
149
protobuf_version : 25.2
149
150
googleapis_commitish : 1a45bf7393b52407188c82e63101db7dc9c72026
151
+ libraries_bom_version : 26.37.0
150
152
owlbot_cli_image : sha256:623647ee79ac605858d09e60c1382a716c125fb776f69301b72de1cd35d49409
151
153
synthtool_commitish : 6612ab8f3afcd5e292aecd647f0fa68812c9f5b5
152
154
destination_path : google-cloud-java
@@ -192,11 +194,15 @@ libraries:
192
194
193
195
# Local Environment Setup before running ` entry_point.py`
194
196
195
- 1. Assuming Python 3 is installed, follow official guide from [Python.org](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#create-and-use-virtual-environments) to create a virtual environment. The virtual environment can be installed to any folder, usually it is recommended to be installed under the root folder of the project(`sdk-platform-java` in this case).
196
- 2. Assuming the virtual environment is installed under `sdk-platform-java`. Run the following command under the root folder of `sdk-platform-java` to install the dependencies of `library_generation`
197
+ 1. Assuming Python 3 is installed, follow official guide from [Python.org](https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#create-and-use-virtual-environments) to create a virtual environment.
198
+ The virtual environment can be installed to any folder, usually it is recommended to be installed under the root folder of the project(`sdk-platform-java` in this case).
199
+ 2. Assuming the virtual environment is installed under `sdk-platform-java`.
200
+ Run the following command under the root folder of `sdk-platform-java` to install the dependencies of `library_generation`
201
+
197
202
` ` ` bash
198
203
python -m pip install -r library_generation/requirements.txt
199
204
` ` `
205
+
200
206
3. Run the following command to install `library_generation` as a module, which allows the `library_generation` module to be imported from anywhere
201
207
` ` ` bash
202
208
python -m pip install library_generation/
@@ -206,8 +212,8 @@ python -m pip install library_generation/
206
212
207
213
` ` ` bash
208
214
python library_generation/entry_point.py generate \
209
- --baseline-generation-config=/path/to/baseline_config_file \
210
- --current-generation-config=/path/to/current_config_file \
215
+ --baseline-generation-config-path =/path/to/baseline_config_file \
216
+ --current-generation-config-path =/path/to/current_config_file \
211
217
--repository-path=path/to/repository
212
218
` ` `
213
219
If you run `entry_point.py` with the example [configuration](#an-example-of-generation-configuration)
@@ -231,7 +237,7 @@ $repository_path
231
237
| |_samples
232
238
| | |_snippets
233
239
| | | |_generated
234
- | |_.OwlBot.yaml
240
+ | |_.OwlBot-hermetic .yaml
235
241
| |_.repo-metadata.json
236
242
| |_owlbot.py
237
243
| |_pom.xml
@@ -275,7 +281,7 @@ $repository_path
275
281
| |_samples
276
282
| | |_snippets
277
283
| | | |_generated
278
- | |_.OwlBot.yaml
284
+ | |_.OwlBot-hermetic .yaml
279
285
| |_.repo-metadata.json
280
286
| |_owlbot.py
281
287
| |_pom.xml
0 commit comments