File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515# # Running the Plugin
1616
17171. Clone [googleapis](https://github.com/googleapis/googleapis) and
18- [gapic-showcase](https://github.com/googleapis/gapic-showcase/) and install
19- protoc.
18+ [gapic-showcase](https://github.com/googleapis/gapic-showcase/).
2019
21202. Copy the protos from Showcase into googleapis/google/showcase.
2221
2322 ` ` ` sh
24- cp gapic-showcase/schema/google/showcase/v1beta1 googleapis/google/showcase/v1beta
23+ mkdir googleapis/google/showcase
24+ cp -r gapic-showcase/schema/google/showcase/v1beta1 googleapis/google/showcase/v1beta1
2525 ` ` `
2626
27- 3. Add the new microgenerator rules to the protobuf directory ' s `BUILD.bazel`
28- file as follows:
27+ 3. Add the new microgenerator rules to
28+ ` googleapis/google/showcase/v1beta1/BUILD.bazel ` file as follows:
2929
3030 ` ` ` python
3131 load(
3232 " @com_google_googleapis_imports//:imports.bzl" ,
3333 # Existing rules here.
3434 " java_gapic_assembly_gradle_pkg" ,
3535 " java_gapic_library" ,
36+ " java_proto_library" ,
37+ " proto_library_with_info" ,
38+ )
39+
40+ proto_library_with_info(
41+ name = " showcase_proto_with_info" ,
42+ deps = [
43+ " :showcase_proto" ,
44+ ],
45+ )
46+
47+ java_proto_library(
48+ name = " showcase_java_proto" ,
49+ deps = [
50+ " showcase_proto" ,
51+ ],
3652 )
3753
3854 # This should either replace the existing monolith target or have a unique name
You can’t perform that action at this time.
0 commit comments