# Library for earlybird-specific schema.
java_library(
    sources = ["*.java"],
    platform = "java8",
    tags = ["bazel-compatible"],
    dependencies = [
        "3rdparty/jvm/com/google/guava",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/com/twitter/elephantbird:core",
        "3rdparty/jvm/geo/google:geoGoogle",
        "3rdparty/jvm/joda-time",
        "3rdparty/jvm/org/apache/hadoop:hadoop-client-default",
        "3rdparty/jvm/org/apache/lucene:lucene-core",
        "3rdparty/jvm/org/apache/thrift:libthrift",
        "3rdparty/jvm/org/apache/zookeeper:zookeeper-client",
        "3rdparty/jvm/org/slf4j:slf4j-api",
        "cuad/projects/ner/thrift/src/main/thrift:thrift-java",
        "src/java/com/twitter/common/base",
        "src/java/com/twitter/common/collections",
        "src/java/com/twitter/common/text/token",
        "src/java/com/twitter/common/text/util:token-util",
        "src/java/com/twitter/common_internal/text",
        "src/java/com/twitter/common_internal/text/version",
        "src/java/com/twitter/search/common/config",
        "src/java/com/twitter/search/common/constants",
        "src/java/com/twitter/search/common/encoding/docvalues",
        "src/java/com/twitter/search/common/encoding/features",
        "src/java/com/twitter/search/common/metrics",
        "src/java/com/twitter/search/common/partitioning/snowflakeparser",
        "src/java/com/twitter/search/common/schema",
        "src/java/com/twitter/search/common/schema/base",
        "src/java/com/twitter/search/common/util:longintconverter",
        "src/java/com/twitter/search/common/util/analysis",
        "src/java/com/twitter/search/common/util/spatial",
        "src/java/com/twitter/search/common/util/text",
        "src/java/com/twitter/search/common/util/text/regex",
        "src/java/com/twitter/search/common/util/url",
        "src/thrift/com/twitter/search/common:indexing-java",
        "src/thrift/com/twitter/search/common:schema-java",
        "src/thrift/com/twitter/service/spiderduck/gen:metadata-store-java",
    ],
    exports = [
        "src/thrift/com/twitter/search/common:indexing-java",
    ],
)

java_library(
    name = "for-timelines",
    sources = [
        "EarlybirdCluster.java",
        "EarlybirdFieldConstants.java",
    ],
    platform = "java8",
    tags = ["bazel-compatible"],
    dependencies = [
        "3rdparty/jvm/com/google/guava",
        "3rdparty/jvm/com/google/inject:guice",
        "3rdparty/jvm/com/twitter/elephantbird:core",
        "3rdparty/jvm/geo/google:geoGoogle",
        "3rdparty/jvm/joda-time",
        "3rdparty/jvm/org/apache/hadoop:hadoop-client-default",
        "3rdparty/jvm/org/apache/lucene:lucene-core",
        "3rdparty/jvm/org/apache/thrift:libthrift",
        "3rdparty/jvm/org/apache/zookeeper:zookeeper-client",
        "3rdparty/jvm/org/slf4j:slf4j-api",
        "cuad/projects/ner/thrift/src/main/thrift:thrift-java",
        "src/java/com/twitter/common/base",
        "src/java/com/twitter/common/collections",
        "src/java/com/twitter/common/text/token",
        "src/java/com/twitter/common/text/util:token-util",
        "src/java/com/twitter/common_internal/text/version",
        "src/java/com/twitter/search/common/config",
        "src/java/com/twitter/search/common/constants",
        "src/java/com/twitter/search/common/encoding/docvalues",
        "src/java/com/twitter/search/common/encoding/features",
        "src/java/com/twitter/search/common/metrics",
        "src/java/com/twitter/search/common/partitioning/snowflakeparser",
        "src/java/com/twitter/search/common/schema",
        "src/java/com/twitter/search/common/schema/base",
        "src/java/com/twitter/search/common/util:longintconverter",
        "src/java/com/twitter/search/common/util/analysis",
        "src/java/com/twitter/search/common/util/spatial",
        "src/java/com/twitter/search/common/util/text",
        "src/java/com/twitter/search/common/util/text/regex",
        "src/java/com/twitter/search/common/util/url",
        "src/thrift/com/twitter/search/common:indexing-java",
        "src/thrift/com/twitter/search/common:schema-java",
        "src/thrift/com/twitter/service/spiderduck/gen:metadata-store-java",
    ],
    exports = [
        "src/thrift/com/twitter/search/common:indexing-java",
    ],
)
