Skip to content

Commit d335340

Browse files
authored
Fix development doc (#837)
* Fix dev doc * Clarify BUILD.bazel location
1 parent 556e7dd commit d335340

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

DEVELOPMENT.md

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,40 @@
1515
## Running the Plugin
1616

1717
1. 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

2120
2. 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

0 commit comments

Comments
 (0)