Skip to content

Commit

Permalink
fix: Add javax dependency for java.annotations bazel targets. (#3155)
Browse files Browse the repository at this point in the history
This is requried to fix the build for java 11, since `javax.annotations` package was removed from JDK.
  • Loading branch information
vam-google committed Mar 31, 2020
1 parent 4386c2c commit 6c01035
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions java/java_gapic.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ def java_resource_name_proto_library(name, deps, gapic_yaml, **kwargs):
deps = [
"@com_google_api_api_common//jar",
"@com_google_guava_guava//jar",
"@javax_annotation_javax_annotation_api//jar",
],
**kwargs
)
Expand Down Expand Up @@ -171,6 +172,7 @@ def java_gapic_library(
"@com_google_auth_google_auth_library_credentials//jar",
"@com_google_auth_google_auth_library_oauth2_http//jar",
"@com_google_http_client_google_http_client//jar",
"@javax_annotation_javax_annotation_api//jar",
]

native.java_library(
Expand Down Expand Up @@ -228,6 +230,7 @@ def java_discogapic_library(
"@com_google_auth_google_auth_library_oauth2_http//jar",
"@com_google_http_client_google_http_client//jar",
"@com_google_code_gson_gson//jar",
"@javax_annotation_javax_annotation_api//jar",
]

native.java_library(
Expand Down

0 comments on commit 6c01035

Please sign in to comment.