diff --git a/java/private/checkstyle.bzl b/java/private/checkstyle.bzl index e8b490cc..b43326b0 100644 --- a/java/private/checkstyle.bzl +++ b/java/private/checkstyle.bzl @@ -77,9 +77,9 @@ _checkstyle_test = rule( default = "@contrib_rules_jvm//java:checkstyle2junit.xslt", ), "_xslt_transformer": attr.label( - default = "@contrib_rules_jvm//java/src/com/github/bazel_contrib/contrib_rules_jvm/xml:xslt_transformer", + default = "@contrib_rules_jvm//java/src/com/github/bazel_contrib/contrib_rules_jvm/xml:XSLTTransformer", executable = True, - cfg = "host", + cfg = "exec", ), }, executable = True, diff --git a/java/src/com/github/bazel_contrib/contrib_rules_jvm/xml/BUILD.bazel b/java/src/com/github/bazel_contrib/contrib_rules_jvm/xml/BUILD.bazel index bd574d59..7bc79db5 100644 --- a/java/src/com/github/bazel_contrib/contrib_rules_jvm/xml/BUILD.bazel +++ b/java/src/com/github/bazel_contrib/contrib_rules_jvm/xml/BUILD.bazel @@ -1,6 +1,14 @@ -java_binary( - name = "xslt_transformer", +load("@rules_java//java:defs.bzl", "java_binary", "java_library") + +java_library( + name = "xml", srcs = ["XSLTTransformer.java"], + visibility = ["//:__subpackages__"], +) + +java_binary( + name = "XSLTTransformer", main_class = "XSLTTransformer", visibility = ["//visibility:public"], + runtime_deps = [":xml"], )