Skip to content

Instantly share code, notes, and snippets.

@cushon

cushon/A.java Secret

Created April 10, 2018 06:15
Show Gist options
  • Save cushon/0241dafdb608b7e2f37c475d3304aa18 to your computer and use it in GitHub Desktop.
Save cushon/0241dafdb608b7e2f37c475d3304aa18 to your computer and use it in GitHub Desktop.
public class A {
}
public class B {
com.test.proto.P.Message m;
}
proto_library(
name = "p_proto",
srcs = ["p.proto"],
)
java_proto_library(
name = "p_java_proto",
deps = [":p_proto"],
)
java_library(
name = "a",
srcs = ["A.java"],
deps = [":p_java_proto"],
)
java_library(
name = "b",
srcs = ["B.java"],
deps = [
":a",
":p_proto",
],
)
syntax = "proto3";
option java_package = "com.test.proto";
option java_outer_classname = "P";
message Message {
}
http_archive(
name = "com_google_protobuf",
sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30",
strip_prefix = "protobuf-3.5.0",
urls = ["https://github.com/google/protobuf/archive/v3.5.0.zip"],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment