Skip to content

Commit

Permalink
fix: Depend on upstream jna instead of the bundled one (#5529)
Browse files Browse the repository at this point in the history
  • Loading branch information
blorente authored Oct 30, 2023
1 parent aaf1a17 commit 7e8b804
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -945,6 +945,16 @@ jvm_maven_import_external(
server_urls = ["https://repo1.maven.org/maven2"],
)

# Usually, we'd get this from the JetBrains SDK, but the bundled one not aware of Bazel platforms,
# so it fails on certain setups.
jvm_maven_import_external(
name = "jna",
artifact = "net.java.dev.jna:jna:5.13.0",
artifact_sha256 = "66d4f819a062a51a1d5627bffc23fac55d1677f0e0a1feba144aabdd670a64bb",
licenses = ["notice"], # Apache 2.0
server_urls = ["https://repo1.maven.org/maven2"],
)

# io_grpc_grpc_java dependencies
load("@io_grpc_grpc_java//:repositories.bzl", "IO_GRPC_GRPC_JAVA_ARTIFACTS", "IO_GRPC_GRPC_JAVA_OVERRIDE_TARGETS", "grpc_java_repositories")

Expand Down
3 changes: 3 additions & 0 deletions testing/test_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ def intellij_integration_test_suite(
deps = list(deps)
deps.extend([
"//testing:lib",
# Usually, we'd get this from the JetBrains SDK, but the bundled one not aware of Bazel platforms,
# so it fails on certain setups.
"@jna",
])
runtime_deps = list(runtime_deps)
runtime_deps.extend([
Expand Down

0 comments on commit 7e8b804

Please sign in to comment.