scala_library(
    sources = ["*.scala"],
    compiler_option_sets = ["fatal_warnings"],
    platform = "java11",
    tags = [
        "bazel-compatible",
        "bazel-only",
    ],
    dependencies = [
        "3rdparty/src/jvm/com/twitter/scalding:args",
        "3rdparty/src/jvm/com/twitter/scalding:core",
        "ann/src/main/scala/com/twitter/ann/annoy",
        "ann/src/main/scala/com/twitter/ann/brute_force",
        "ann/src/main/scala/com/twitter/ann/common",
        "ann/src/main/scala/com/twitter/ann/faiss",
        "ann/src/main/scala/com/twitter/ann/serialization",
        "ann/src/main/scala/com/twitter/ann/util",
        "src/scala/com/twitter/cortex/ml/embeddings/common:Helpers",
        "src/scala/com/twitter/scalding_internal/job",
    ],
)

hadoop_binary(
    name = "faissindexbuilder-deploy",
    main = "com.twitter.ann.scalding.offline.faissindexbuilder.IndexBuilderApp",
    platform = "java11",
    runtime_platform = "java11",
    tags = [
        "bazel-compatible",
        "bazel-compatible:migrated",
        "bazel-only",
    ],
    dependencies = [
        ":faissindexbuilder",
        "3rdparty/jvm/org/slf4j:slf4j-jdk14",
    ],
)
