Skip to content

Commit

Permalink
fix: exception when trying to import java project (#6140)
Browse files Browse the repository at this point in the history
For the reference:
https://github.com/google/guava/blob/37ce42927192b4fbd7b1d0cf946485f88fa25130/README.md#important-warnings

"Guava has one dependency that is needed for linkage at runtime: com.google.guava:failureaccess:1.0.2."

closes #6139
  • Loading branch information
tpasternak authored Feb 23, 2024
1 parent 27b3133 commit 705a2db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,15 @@ jvm_maven_import_external(
],
)

jvm_maven_import_external(
name = "com_google_guava_failureaccess",
artifact = "com.google.guava:failureaccess:1.0.2",
artifact_sha256 = "8a8f81cf9b359e3f6dfa691a1e776985c061ef2f223c9b2c80753e1b458e8064",
server_urls = [
"https://repo1.maven.org/maven2",
],
)

jvm_maven_import_external(
name = "gson",
artifact = "com.google.code.gson:gson:2.9.1",
Expand Down
5 changes: 3 additions & 2 deletions aspect/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ java_library(
srcs = glob(["src/**/*.java"]),
javacopts = ["-source 8 -target 8"],
deps = [
"@com_google_guava_guava//jar",
"//proto:proto_deps",
"@jsr305_annotations//jar",
"//third_party/bazel/src/main/protobuf:worker_protocol_java_proto",
"@com_google_guava_failureaccess//jar",
"@com_google_guava_guava//jar",
"@jsr305_annotations//jar",
],
)

Expand Down

0 comments on commit 705a2db

Please sign in to comment.