Skip to content

Commit

Permalink
Add missing javax.annotation dependency
Browse files Browse the repository at this point in the history
Fixes #483.
  • Loading branch information
davido committed May 8, 2020
1 parent d1c0bb4 commit adb240e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
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

0 comments on commit adb240e

Please sign in to comment.