load("@rules_jvm_external//:defs.bzl", "artifact")
load("//java:defs.bzl", "java_library")

java_library(
    name = "httpd",
    srcs = glob(["*.java"]),
    visibility = [
        "//java/src/org/openqa/selenium/grid:__pkg__",
        "//java/test/org/openqa/selenium/grid/router:__pkg__",
    ],
    deps = [
        "//java:auto-service",
        "//java/src/org/openqa/selenium:core",
        "//java/src/org/openqa/selenium/cli",
        "//java/src/org/openqa/selenium/grid:base-command",
        "//java/src/org/openqa/selenium/grid/config",
        "//java/src/org/openqa/selenium/grid/distributor",
        "//java/src/org/openqa/selenium/grid/distributor/config",
        # Loaded via reflection. Required for the Distributor to start
        # if no implementation is given.
        "//java/src/org/openqa/selenium/grid/distributor/local",
        "//java/src/org/openqa/selenium/grid/server",
        "//java/src/org/openqa/selenium/netty/server",
        artifact("com.beust:jcommander"),
        artifact("com.google.guava:guava"),
    ],
)
