blob: 7a4e100d5d327f34112db41ed57c1e44bbb53d14 [file] [log] [blame] [edit]
load("@rules_java//java:defs.bzl", "java_binary", "java_import")
load("@rules_license//rules:license.bzl", "license")
package(
default_applicable_licenses = [":license"],
default_visibility = ["//visibility:public"],
)
licenses(["notice"]) # Apache 2.0
license(
name = "license",
package_name = "jarjar",
license_kinds = [
"@rules_license//licenses/spdx:Apache-2.0",
],
license_text = "LICENSE",
)
filegroup(
name = "srcs",
srcs = glob(["**"]),
)
# jarjar_bin
java_binary(
name = "jarjar_command",
srcs = glob(
["java/**/*.java"],
exclude = [
"java/com/tonicsystems/jarjar/util/AntJarProcessor.java",
"java/com/tonicsystems/jarjar/JarJarMojo.java",
"java/com/tonicsystems/jarjar/JarJarTask.java",
],
),
main_class = "com.tonicsystems.jarjar.Main",
resources = ["java/com/tonicsystems/jarjar/help.txt"],
deps = [
"//third_party:asm",
"//third_party:asm-commons",
"//third_party:asm-util",
"//third_party:jsr305",
],
)
java_import(
name = "jarjar_import",
jars = [":jarjar_command_deploy.jar"],
)
java_binary(
name = "jarjar_bin",
main_class = "com.tonicsystems.jarjar.Main",
runtime_deps = [":jarjar_import"],
)