diff --git a/tools/build/bazel/osgi_java_library.bzl b/tools/build/bazel/osgi_java_library.bzl index b2505a4346..bd68a30bf0 100644 --- a/tools/build/bazel/osgi_java_library.bzl +++ b/tools/build/bazel/osgi_java_library.bzl @@ -514,6 +514,11 @@ def osgi_jar_with_tests( name = name + "_checkstyle_test", srcs = srcs, ) + if test_srcs != []: + checkstyle_test( + name = name + "_checkstyle_tests_test", + srcs = test_srcs, + ) """ Creates an OSGI jar file from a set of source files.