1load("@rules_pkg//pkg:mappings.bzl", "pkg_filegroup", "pkg_files", "strip_prefix") 2 3# Run Linkage Monitor 4sh_test( 5 name = "linkage_monitor", 6 size = "large", 7 srcs = [ 8 ":linkage_monitor.sh", 9 ], 10 data = [ 11 # Making the Maven modules available in the sandbox 12 ":core", 13 ":kotlin", 14 ":kotlin-lite", 15 ":lite", 16 ":util", 17 "//:protoc", 18 # Making this test depends on the code change in core and util 19 "//java/core:dist_files", 20 "//java/util", 21 ] + glob([ 22 "pom.xml", 23 "*/pom.xml", 24 "test/linkage-monitor-check-bom/pom.xml", 25 ]), 26 tags = [ 27 # Exclude this target from wildcard expansion (//...) because it may 28 # take unnecessary time. 29 "manual", 30 ], 31) 32 33test_suite( 34 name = "tests", 35 tests = [ 36 "//java/core:tests", 37 "//java/kotlin:tests", 38 "//java/kotlin-lite:tests", 39 "//java/lite:tests", 40 "//java/util:tests", 41 ], 42) 43 44filegroup( 45 name = "release", 46 srcs = [ 47 "//java/core:release", # contains lite. 48 "//java/kotlin:release", 49 "//java/kotlin-lite:release", 50 "//java/util:release", 51 ], 52) 53 54################################################################################ 55# Packaging rules 56################################################################################ 57 58pkg_files( 59 name = "dist_files", 60 srcs = [ 61 "BUILD.bazel", 62 "README.md", 63 "bom/pom.xml", 64 "lite.md", 65 "pom.xml", 66 "protoc/pom.xml", 67 ], 68 strip_prefix = strip_prefix.from_root(""), 69 visibility = ["//pkg:__pkg__"], 70) 71 72pkg_filegroup( 73 name = "all_dist_files", 74 srcs = [ 75 ":dist_files", 76 "//java/core:dist_files", 77 "//java/internal:dist_files", 78 "//java/kotlin:dist_files", 79 "//java/kotlin-lite:dist_files", 80 "//java/lite:dist_files", 81 "//java/util:dist_files", 82 ], 83 visibility = ["//pkg:__pkg__"], 84) 85