Skip to content

Commit

Permalink
Fix intellij-ext service dependencies to build with Bazel
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 556864915
  • Loading branch information
mai93 authored and copybara-github committed Aug 14, 2023
1 parent 5843e0b commit ee355f2
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 15 deletions.
49 changes: 49 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -623,3 +623,52 @@ jvm_maven_import_external(
licenses = ["notice"], # Apache 2.0
server_urls = ["https://repo1.maven.org/maven2"],
)

http_archive(
name = "io_bazel_rules_go",
sha256 = "6b65cb7917b4d1709f9410ffe00ecf3e160edf674b78c54a894471320862184f",
urls = [
"https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
"https://github.com/bazelbuild/rules_go/releases/download/v0.39.0/rules_go-v0.39.0.zip",
],
)

# gRPC Java
http_archive(
name = "io_grpc_grpc_java",
sha256 = "4a021ea9ebb96f5841a135c168209cf2413587a0f8ce71a2bf37b3aad847b0d0",
strip_prefix = "grpc-java-1.57.1",
url = "https://github.com/grpc/grpc-java/archive/v1.57.1.tar.gz",
)

jvm_maven_import_external(
name = "netty4_common",
artifact = "io.netty:netty-common:4.1.96.Final",
artifact_sha256 = "da104e80db830922eaf860eb1c5e957cd1d124068253d02e9c7a7843bc66427a",
licenses = ["notice"], # Apache 2.0
server_urls = ["https://repo1.maven.org/maven2"],
)

jvm_maven_import_external(
name = "netty4_transport",
artifact = "io.netty:netty-transport:4.1.96.Final",
artifact_sha256 = "8fe3afbe8b094a7b9f1eb27becf1cf017e5572343c1744d2b6040d5f331e84e3",
licenses = ["notice"], # Apache 2.0
server_urls = ["https://repo1.maven.org/maven2"],
)

jvm_maven_import_external(
name = "netty4_transport_native_epoll",
artifact = "io.netty:netty-transport-native-epoll:4.1.96.Final",
artifact_sha256 = "33d8f491e47a5a365a9bab0c279ae3d47313f00f305c3d0333ae7fdba6762786",
licenses = ["notice"], # Apache 2.0
server_urls = ["https://repo1.maven.org/maven2"],
)

jvm_maven_import_external(
name = "netty4_transport_native_unix_common",
artifact = "io.netty:netty-transport-native-unix-common:4.1.96.Final",
artifact_sha256 = "4f96297a06a544a4cdb6fe6af8b868640f100fa96969e2196be216bd41adef13",
licenses = ["notice"], # Apache 2.0
server_urls = ["https://repo1.maven.org/maven2"],
)
26 changes: 13 additions & 13 deletions ext/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ java_library(
deps = [
"//ext/proto:intellijext_java_grpc",
"//ext/proto:intellijext_java_proto",
"//third_party/java/grpc:core",
"//third_party/java/grpc:netty",
"//third_party/java/netty4:common",
"//third_party/java/netty4:transport",
"//third_party/java/netty4:transport_native_epoll",
"//third_party/java/netty4:transport_native_unix_common",
"@com_google_guava_guava//jar",
"@io_grpc_grpc_java//core",
"@io_grpc_grpc_java//netty",
"@netty4_common//jar",
"@netty4_transport//jar",
"@netty4_transport_native_epoll//jar",
"@netty4_transport_native_unix_common//jar",
],
)

Expand All @@ -30,13 +30,13 @@ java_binary(
deps = [
"//ext/proto:intellijext_java_grpc",
"//ext/proto:intellijext_java_proto",
"//third_party/java/grpc:core",
"//third_party/java/grpc:netty",
"//third_party/java/grpc:stub",
"//third_party/java/netty4:common",
"//third_party/java/netty4:transport",
"//third_party/java/netty4:transport_native_epoll",
"//third_party/java/netty4:transport_native_unix_common",
"@io_grpc_grpc_java//core",
"@io_grpc_grpc_java//netty",
"@netty4_common//jar",
"@netty4_transport//jar",
"@netty4_transport_native_epoll//jar",
"@netty4_transport_native_unix_common//jar",
],
)

Expand All @@ -50,7 +50,7 @@ java_test(
deps = [
":intellijext",
"//ext/proto:intellijext_java_proto",
"//third_party/java/grpc:core",
"@io_grpc_grpc_java//core",
"@junit//jar",
"@truth//jar",
],
Expand Down
4 changes: 2 additions & 2 deletions ext/proto/BUILD
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//third_party/java/grpc:build_defs.bzl", "java_grpc_library")
load("//net/grpc/go/build_defs:go_grpc_library.bzl", "go_grpc_library")
load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
load("@io_bazel_rules_go//proto:def.bzl", "go_grpc_library", "go_proto_library")

proto_library(
name = "intellijext_proto",
Expand Down

0 comments on commit ee355f2

Please sign in to comment.