creating a single target to rollup maven artifacts (#8776)
diff --git a/java/BUILD b/java/BUILD
index 8778bf9..e12d472 100644
--- a/java/BUILD
+++ b/java/BUILD
@@ -1,8 +1,16 @@
test_suite(
- name = "tests",
- tests = [
- "//java/core:tests",
- "//java/lite:tests",
- "//java/util:tests",
- ],
+ name = "tests",
+ tests = [
+ "//java/core:tests",
+ "//java/lite:tests",
+ "//java/util:tests",
+ ],
)
+
+filegroup(
+ name = "release",
+ srcs = [
+ "//java/core:release", # contains lite.
+ "//java/util:release",
+ ]
+)
\ No newline at end of file
diff --git a/java/core/BUILD b/java/core/BUILD
index e1e14f6..6fa1084 100644
--- a/java/core/BUILD
+++ b/java/core/BUILD
@@ -142,6 +142,21 @@
],
)
+filegroup(
+ name = "release",
+ visibility = ["//java:__pkg__"],
+ srcs = [
+ ":core-pom",
+ ":core-maven-source",
+ ":core-docs",
+ ":core-project",
+ ":lite-pom",
+ ":lite-maven-source",
+ ":lite-docs",
+ ":lite-project",
+ ]
+)
+
proto_lang_toolchain(
name = "toolchain",
command_line = "--java_out=$(OUT)",
diff --git a/java/util/BUILD b/java/util/BUILD
index b66d4b0..b839575 100644
--- a/java/util/BUILD
+++ b/java/util/BUILD
@@ -20,6 +20,17 @@
],
)
+filegroup(
+ name = "release",
+ visibility = ["//java:__pkg__"],
+ srcs = [
+ ":util-pom",
+ ":util-maven-source",
+ ":util-docs",
+ ":util-project",
+ ]
+)
+
proto_library(
name = "test_protos",
srcs = glob(["src/test/proto/**/*.proto"]),