load("@rules_jvm_external//:defs.bzl", "artifact")
load("//java:defs.bzl", "java_binary")
load("//java:version.bzl", "TOOLS_JAVA_VERSION")

java_binary(
    name = "ModuleGenerator",
    srcs = glob(["*.java"]),
    javacopts = [
        "--release",
        TOOLS_JAVA_VERSION,
    ],
    main_class = "dev.selenium.tools.modules.ModuleGenerator",
    visibility = ["//visibility:public"],
    deps = [
        "//java/src/org/openqa/selenium/io",
        "@rules_jvm_external//private/tools/java/com/github/bazelbuild/rules_jvm_external/zip",
        artifact("net.bytebuddy:byte-buddy"),
        artifact("com.github.javaparser:javaparser-core"),
    ],
)
