Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing javax.annotation dependency #484

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions closure/repositories.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ def rules_closure_dependencies(
omit_com_squareup_javapoet = False,
omit_fonts_noto_hinted_deb = False,
omit_fonts_noto_mono_deb = False,
omit_javax_annotation_api = False,
omit_javax_annotation_jsr250_api = False,
omit_javax_inject = False,
omit_libexpat_amd64_deb = False,
Expand Down Expand Up @@ -151,6 +152,8 @@ def rules_closure_dependencies(
fonts_noto_hinted_deb()
if not omit_fonts_noto_mono_deb:
fonts_noto_mono_deb()
if not omit_javax_annotation_api:
javax_annotation_api()
if not omit_javax_annotation_jsr250_api:
javax_annotation_jsr250_api()
if not omit_javax_inject:
Expand Down Expand Up @@ -838,6 +841,16 @@ def fonts_noto_mono_deb():
sha256 = "71ff715cf50a74a8cc11b02e7c906b69a242d3d677e739e0b2d18cd23b7de375",
)

def javax_annotation_api():
java_import_external(
name = "javax_annotation_api",
licenses = ["reciprocal"],
jar_sha256 = "e04ba5195bcd555dc95650f7cc614d151e4bcd52d29a10b8aa2197f3ab89ab9b",
jar_urls = [
"https://repo1.maven.org/maven2/javax/annotation/javax.annotation-api/1.3.2/javax.annotation-api-1.3.2.jar",
],
)

def javax_annotation_jsr250_api():
java_import_external(
name = "javax_annotation_jsr250_api",
Expand Down
1 change: 1 addition & 0 deletions java/io/bazel/rules/closure/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ java_library(
deps = [
"@com_google_auto_value",
"@com_google_guava",
"@javax_annotation_api",
],
)

Expand Down
1 change: 1 addition & 0 deletions java/io/bazel/rules/closure/webfiles/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ java_library(
"@com_google_dagger",
"@com_google_guava",
"@com_google_protobuf//:protobuf_java",
"@javax_annotation_api",
"@javax_inject",
"@org_jsoup",
],
Expand Down
1 change: 1 addition & 0 deletions java/io/bazel/rules/closure/worker/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ java_library(
"@com_google_dagger",
"@com_google_guava",
"@com_google_protobuf//:protobuf_java",
"@javax_annotation_api",
],
)

Expand Down
1 change: 1 addition & 0 deletions javatests/io/bazel/rules/closure/worker/testing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ java_library(
"@com_google_dagger",
"@com_google_guava",
"@com_google_truth",
"@javax_annotation_api",
],
)