java_library(
    name = "feature_update_service-lib",
    sources = ["*.java"],
    compiler_option_sets = ["fatal_warnings"],
    platform = "java8",
    tags = ["bazel-compatible"],
    dependencies = [
        "3rdparty/jvm/com/fasterxml/jackson/core:jackson-annotations",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/javax/inject:javax.inject",
        "3rdparty/jvm/org/apache/kafka:kafka-clients",
        "3rdparty/jvm/org/apache/thrift:libthrift",
        "decider/src/main/scala",
        "finagle/finagle-core/src/main",
        "finagle/finagle-exp/src/main/scala",
        "finagle/finagle-http/src/main/scala",
        "finagle/finagle-thrift/src/main/scala",
        "finagle/finagle-thriftmux/src/main/scala",
        "finatra-internal/decider/src/main/scala",
        "finatra-internal/diffy/src/main/scala",
        "finatra-internal/mtls-thriftmux/src/main/scala",
        "finatra/inject/inject-app/src/main/scala",
        "finatra/inject/inject-core/src/main/scala",
        "finatra/inject/inject-server/src/main/scala",
        "finatra/inject/inject-slf4j/src/main/scala",
        "finatra/inject/inject-slf4j/src/main/scala/com/twitter/inject",
        "finatra/inject/inject-thrift-client/src/main/scala",
        "finatra/inject/inject-utils/src/main/scala",
        "finatra/thrift/src/main/scala/com/twitter/finatra/thrift",
        "finatra/thrift/src/main/scala/com/twitter/finatra/thrift:controller",
        "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/exceptions",
        "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/filters",
        "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/modules",
        "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/response",
        "finatra/thrift/src/main/scala/com/twitter/finatra/thrift/routing",
        "kafka/finagle-kafka/finatra-kafka/src/main/scala",
        "science/search/feature_update_service/resources",
        "src/java/com/twitter/common/base",
        "src/java/com/twitter/common/util:system-mocks",
        "src/java/com/twitter/common_internal/text/version",
        "src/java/com/twitter/search/common/constants",
        "src/java/com/twitter/search/common/debug",
        "src/java/com/twitter/search/common/decider",
        "src/java/com/twitter/search/common/metrics",
        "src/java/com/twitter/search/common/partitioning/base",
        "src/java/com/twitter/search/common/schema/base",
        "src/java/com/twitter/search/common/util:platform_stats_exporter",
        "src/java/com/twitter/search/common/util/io/periodic",
        "src/java/com/twitter/search/common/util/thrift:text-protocol",
        "src/java/com/twitter/search/feature_update_service/filters",
        "src/java/com/twitter/search/feature_update_service/modules",
        "src/java/com/twitter/search/feature_update_service/stats",
        "src/java/com/twitter/search/feature_update_service/util",
        "src/java/com/twitter/search/ingester/model",
        "src/thrift/com/twitter/search/common:indexing-java",
        "src/thrift/com/twitter/search/common:schema-java",
        "src/thrift/com/twitter/search/feature_update_service/thrift:thrift-java",
        "src/thrift/com/twitter/tweetypie:service-java",
        "src/thrift/com/twitter/tweetypie:tweet-java",
        "thrift-web-forms/src/main/java/com/twitter/thriftwebforms",
        "thrift-web-forms/src/main/scala/com/twitter/thriftwebforms",
        "thrift-web-forms/src/main/scala/com/twitter/thriftwebforms/model",
        "twitter-server-internal/src/main/scala",
        "twitter-server/server/src/main/scala",
        "util/util-app/src/main/scala",
        "util/util-core:scala",
        "util/util-function/src/main/java",
        "util/util-lint/src/main/scala",
        "util/util-slf4j-api/src/main/scala",
        "util/util-stats/src/main/scala",
    ],
)

jvm_binary(
    name = "feature_update_service",
    basename = "feature_update_service",
    main = "com.twitter.search.feature_update_service.FeatureUpdateServiceThriftServerMain",
    platform = "java8",
    tags = ["bazel-compatible"],
    dependencies = [
        ":feature_update_service-lib",
        "3rdparty/jvm/ch/qos/logback:logback-classic",
        "loglens/loglens-logback/src/main/scala/com/twitter/loglens/logback",
        "twitter-server-internal/src/main/scala",
    ],
)
