Skip to content

Commit 386b979

Browse files
authored
Merge branch 'master' into use_super_annotation
2 parents c17c887 + b599be5 commit 386b979

File tree

4 files changed

+50
-0
lines changed

4 files changed

+50
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ examples/build/
2020
gradle-app.setting
2121
!gradle-wrapper.jar
2222
.gradletasknamecache
23+
24+
# bazel
25+
bazel-bin
26+
bazel-examples
27+
bazel-genfiles
28+
bazel-out
29+
bazel-testlogs

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,14 @@ cd examples/
4343
./gradlew compileJava
4444
```
4545

46+
#### Bazel
47+
The example is [here](examples/BUILD.bazel)
48+
49+
``` sh
50+
cd examples/
51+
bazel build //...
52+
```
53+
4654
## Build and Test
4755

4856
``` sh

examples/BUILD.bazel

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
java_library(
2+
name = "example",
3+
srcs = glob(["src/main/java/com/example/*.java"]),
4+
deps = [
5+
"@grpc_java//core",
6+
],
7+
plugins = [
8+
":io_grpc_grpc_java_api_checker_plugin",
9+
],
10+
)
11+
12+
java_plugin(
13+
name = "io_grpc_grpc_java_api_checker_plugin",
14+
deps = [
15+
"@com_google_guava_guava//jar",
16+
"@io_grpc_grpc_java_api_checker//jar",
17+
],
18+
)

examples/WORKSPACE

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
workspace(name = "example")
2+
3+
http_archive(
4+
name = "grpc_java",
5+
strip_prefix = "grpc-java-1.10.0",
6+
urls = ["https://github.com/grpc/grpc-java/archive/v1.10.0.zip"],
7+
)
8+
9+
load("@grpc_java//:repositories.bzl", "grpc_java_repositories")
10+
11+
grpc_java_repositories()
12+
13+
maven_jar(
14+
name = "io_grpc_grpc_java_api_checker",
15+
artifact = "io.grpc:grpc-java-api-checker:1.0.0",
16+
sha1 = "68fe2fc82e1f673b042fb7192a3724d1464d0582",
17+
)

0 commit comments

Comments
 (0)