• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2024 The Dagger Authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15# Starlark rules for using jarjar
16
17load("@rules_java//java:defs.bzl", "java_binary")
18
19package(default_visibility = ["//:src"])
20
21java_binary(
22    name = "jarjar",
23    main_class = "org.pantsbuild.jarjar.Main",
24    visibility = ["//visibility:public"],
25    runtime_deps = [
26        "//third_party/java/asm",
27        "//third_party/java/asm:asm-commons",
28        "//third_party/java/asm:asm-tree",
29        "//third_party/java/jsr250_annotations",
30        "//third_party/java/jsr330_inject",
31        "@maven//:javax_enterprise_cdi_api",
32        "@maven//:org_apache_ant_ant",
33        "@maven//:org_apache_ant_ant_launcher",
34        "@maven//:org_apache_maven_maven_artifact",
35        "@maven//:org_apache_maven_maven_model",
36        "@maven//:org_apache_maven_maven_plugin_api",
37        "@maven//:org_codehaus_plexus_plexus_classworlds",
38        "@maven//:org_codehaus_plexus_plexus_component_annotations",
39        "@maven//:org_codehaus_plexus_plexus_utils",
40        "@maven//:org_eclipse_sisu_org_eclipse_sisu_inject",
41        "@maven//:org_eclipse_sisu_org_eclipse_sisu_plexus",
42        "@maven//:org_pantsbuild_jarjar",
43    ],
44)
45
46sh_binary(
47    name = "jarjar_runner",
48    srcs = ["jarjar_runner.sh"],
49    visibility = ["//visibility:public"],
50)
51