Set explicit top-level targets for Bazel build Define at the top-level BUILD the two targets that the build process should generate and move them from their inner project top the top-level directory so that becomes easier to archive them from the CI with the correct expected names: - github-oauth.jar - github-plugin.jar Change-Id: Ie1fca005e9c13912f42b6a989798f48054a292c6
diff --git a/BUILD b/BUILD index e69de29..501159f 100644 --- a/BUILD +++ b/BUILD
@@ -0,0 +1,13 @@ +genrule( + name = "github-oauth", + srcs = ["//plugins/github/github-oauth:github-oauth_deploy.jar"], + outs = ["github-oauth.jar"], + cmd = "cp $< $@", +) + +genrule( + name = "github-plugin", + srcs = ["//plugins/github/github-plugin"], + outs = ["github-plugin.jar"], + cmd = "cp $< $@", +)
diff --git a/github-oauth/BUILD b/github-oauth/BUILD index 05e694b..4f80450 100644 --- a/github-oauth/BUILD +++ b/github-oauth/BUILD
@@ -4,6 +4,7 @@ java_binary( name = "github-oauth", main_class = "Dummy", + visibility = ["//visibility:public"], runtime_deps = [":github-oauth-lib"], )