Skip to content
This repository has been archived by the owner on Dec 15, 2021. It is now read-only.

DRAFT_All BUILD files are autogenerated #551

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
188 changes: 119 additions & 69 deletions common/BUILD
Original file line number Diff line number Diff line change
@@ -1,46 +1,101 @@
# THIS FILE IS AUTO-GENERATED

package(default_visibility = ["//visibility:public"])

load("//tools/checkstyle:checkstyle.bzl", "checkstyle_test")

proto_library(
name = "text_difference_proto",
srcs = ["text_difference.proto"],
)

java_proto_library(
name = "text_difference_java_proto",
deps = [":text_difference_proto"],
)

java_library(
name = "common",
srcs = [
"CommandLine.java",
"CommonComponent.java",
"CommonModule.java",
"FileUtils.java",
"HttpUtils.java",
"Lists.java",
"MessageDifferencer.java",
"StringBuilder.java",
"Strings.java",
"Time.java",
name = "command_line",
srcs = ["CommandLine.java"],
)

checkstyle_test(
name = "command_line-checkstyle",
target = ":command_line",
)

java_library(
name = "common_component",
srcs = ["CommonComponent.java"],
deps = [
":common_module",
":file_utils",
"//common:dagger_with_annotation_processor",
"//third_party/maven/javax/inject:javax_inject",
],
)

checkstyle_test(
name = "common_component-checkstyle",
target = ":common_component",
)

java_library(
name = "common_module",
srcs = ["CommonModule.java"],
deps = [
":text_differencer",
"//common:dagger_with_annotation_processor",
"//third_party/maven/com/google/auto/value:auto_value",
"//third_party/maven/com/google/auto/value:auto_value_annotations",
"//third_party/maven/com/google/code/findbugs:jsr305",
"//third_party/maven/javax/inject:javax_inject",
],
)

checkstyle_test(
name = "common_module-checkstyle",
target = ":common_module",
)

java_library(
name = "diff_match_patch",
srcs = ["DiffMatchPatch.java"],
deps = [":arrays"],
)

checkstyle_test(
name = "diff_match_patch-checkstyle",
target = ":diff_match_patch",
)

java_library(
name = "file_utils",
srcs = ["FileUtils.java"],
deps = [
"//third_party/maven/com/google/guava",
"//third_party/maven/com/google/protobuf:protobuf_java",
"//third_party/maven/javax/inject:javax_inject",
"//third_party/maven/org/apache/commons:commons_lang3",
],
)

checkstyle_test(
name = "common-checkstyle",
target = ":common",
name = "file_utils-checkstyle",
target = ":file_utils",
)

java_library(
name = "http_utils",
srcs = ["HttpUtils.java"],
deps = ["//third_party/maven/javax/inject:javax_inject"],
)

checkstyle_test(
name = "http_utils-checkstyle",
target = ":http_utils",
)

java_library(
name = "lists",
srcs = ["Lists.java"],
deps = [
"//third_party/maven/com/google/auto/value:auto_value",
"//third_party/maven/com/google/auto/value:auto_value_annotations",
"//third_party/maven/com/google/code/findbugs:jsr305",
"//third_party/maven/com/google/guava",
],
)
Expand All @@ -51,82 +106,77 @@ checkstyle_test(
)

java_library(
name = "text_differencer",
srcs = [
"TextDifferencer.java",
],
name = "message_differencer",
srcs = ["MessageDifferencer.java"],
deps = [
":diff_match_patch",
":lists",
":text_difference_java_proto",
"//common/repo:repo_java_proto",
"//third_party/maven/com/google/auto/value:auto_value_annotations",
"//third_party/maven/com/google/code/findbugs:jsr305",
"//third_party/maven/com/google/guava",
"//third_party/maven/javax/inject:javax_inject",
"//third_party/maven/com/google/protobuf:protobuf_java",
],
)

checkstyle_test(
name = "text_differencer-checkstyle",
target = ":text_differencer",
name = "message_differencer-checkstyle",
target = ":message_differencer",
)

proto_library(
name = "text_difference_proto",
srcs = ["text_difference.proto"],
)

java_proto_library(
name = "text_difference_java_proto",
deps = [":text_difference_proto"],
java_library(
name = "string_builder",
srcs = ["StringBuilder.java"],
)

java_plugin(
name = "dagger_compiler_plugin",
generates_api = True,
processor_class = "dagger.internal.codegen.ComponentProcessor",
tags = ["checkstyle_ignore"],
deps = ["//third_party/maven/com/google/dagger:dagger_compiler"],
checkstyle_test(
name = "string_builder-checkstyle",
target = ":string_builder",
)

java_library(
name = "dagger_with_annotation_processor",
exported_plugins = [":dagger_compiler_plugin"],
tags = ["checkstyle_ignore"],
exports = ["//third_party/maven/com/google/dagger"],
name = "strings",
srcs = ["Strings.java"],
deps = ["//third_party/maven/org/apache/commons:commons_lang3"],
)

java_library(
name = "auto_factory",
exported_plugins = [":auto_factory_plugin"],
tags = ["checkstyle_ignore"],
exports = ["//third_party/maven/com/google/auto/factory:auto_factory"],
checkstyle_test(
name = "strings-checkstyle",
target = ":strings",
)

java_plugin(
name = "auto_factory_plugin",
generates_api = True,
processor_class = "com.google.auto.factory.processor.AutoFactoryProcessor",
tags = ["checkstyle_ignore"],
java_library(
name = "text_differencer",
srcs = ["TextDifferencer.java"],
deps = [
"//third_party/maven/com/google/auto:auto_common",
"//third_party/maven/com/google/auto/factory:auto_factory",
":lists",
":text_difference_java_proto",
"//common:lists",
"//name/fraser/neil/plaintext:diff_match_patch",
"//third_party/maven/com/google/guava",
"//third_party/maven/javax/inject:javax_inject",
],
)

checkstyle_test(
name = "text_differencer-checkstyle",
target = ":text_differencer",
)

java_library(
name = "diff_match_patch",
srcs = ["DiffMatchPatch.java"],
tags = ["checkstyle_ignore"],
name = "time",
srcs = ["Time.java"],
)

checkstyle_test(
name = "time-checkstyle",
target = ":time",
)

java_binary(
name = "base64_tool",
srcs = [
"Base64Tool.java",
],
srcs = ["Base64Tool.java"],
main_class = "com.google.startupos.common.Base64Tool",
deps = [
"//common",
":common_module",
":file_utils",
"//common:dagger_with_annotation_processor",
"//common/flags",
"//third_party/maven/com/google/flogger:flogger_system_backend",
Expand Down
82 changes: 61 additions & 21 deletions common/firestore/BUILD
Original file line number Diff line number Diff line change
@@ -1,40 +1,80 @@
# THIS FILE IS AUTO-GENERATED

package(default_visibility = ["//visibility:public"])

load("//tools/checkstyle:checkstyle.bzl", "checkstyle_test")

java_library(
name = "firestore",
srcs = [
"FirestoreProtoClient.java",
"MessageWithId.java",
"ProtoChange.java",
"ProtoEventListener.java",
"ProtoQuerySnapshot.java",
],
name = "firestore_proto_client",
srcs = ["FirestoreProtoClient.java"],
deps = [
"//common:auto_factory",
"//common:auto_factory_plugin",
"//common:dagger_with_annotation_processor",
":message_with_id",
":proto_event_listener",
":proto_query_snapshot",
"//third_party/maven/com/google/api:api_common",
"//third_party/maven/com/google/auth:google_auth_library_credentials",
"//third_party/maven/com/google/auth:google_auth_library_oauth2_http",
"//third_party/maven/com/google/auto/value:auto_value",
"//third_party/maven/com/google/auto/value:auto_value_annotations",
"//third_party/maven/com/google/cloud:google_cloud_core",
"//third_party/maven/com/google/cloud:google_cloud_core_grpc",
"//third_party/maven/com/google/cloud:google_cloud_firestore",
"//third_party/maven/com/google/cloud:google_cloud_storage",
"//third_party/maven/com/google/code/findbugs:jsr305",
"//third_party/maven/com/google/code/gson",
"//third_party/maven/com/google/firebase:firebase_admin",
"//third_party/maven/com/google/guava",
"//third_party/maven/com/google/protobuf:protobuf_java",
"//third_party/maven/com/google/protobuf:protobuf_java_util",
"//third_party/maven/javax/inject:javax_inject",
],
)

checkstyle_test(
name = "firestore-checkstyle",
target = ":firestore",
name = "firestore_proto_client-checkstyle",
target = ":firestore_proto_client",
)

java_library(
name = "message_with_id",
srcs = ["MessageWithId.java"],
deps = [
"//third_party/maven/com/google/auto/value:auto_value_annotations",
"//third_party/maven/com/google/protobuf:protobuf_java",
],
)

checkstyle_test(
name = "message_with_id-checkstyle",
target = ":message_with_id",
)

java_library(
name = "proto_change",
srcs = ["ProtoChange.java"],
deps = ["//third_party/maven/com/google/protobuf:protobuf_java"],
)

checkstyle_test(
name = "proto_change-checkstyle",
target = ":proto_change",
)

java_library(
name = "proto_event_listener",
srcs = ["ProtoEventListener.java"],
)

checkstyle_test(
name = "proto_event_listener-checkstyle",
target = ":proto_event_listener",
)

java_library(
name = "proto_query_snapshot",
srcs = ["ProtoQuerySnapshot.java"],
deps = [
":firestore_proto_client",
":proto_change",
"//third_party/maven/com/google/cloud:google_cloud_firestore",
"//third_party/maven/com/google/guava",
"//third_party/maven/com/google/protobuf:protobuf_java",
],
)

checkstyle_test(
name = "proto_query_snapshot-checkstyle",
target = ":proto_query_snapshot",
)
Loading