From 519a79549b168dfe825a2f44808215582ed29956 Mon Sep 17 00:00:00 2001 From: Farid Zakaria Date: Sun, 14 Jul 2024 21:41:45 -0400 Subject: [PATCH] Formatted again. --- java/private/checkstyle.bzl | 4 ++-- .../bazel_contrib/contrib_rules_jvm/xml/BUILD.bazel | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) 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"], )