| load("@rules_java//java:defs.bzl", "java_library") | |
| package( | |
| default_applicable_licenses = ["//:license"], | |
| default_visibility = ["//src/main/java/com/google/devtools/build/lib:build_lib"], | |
| ) | |
| filegroup( | |
| name = "srcs", | |
| srcs = glob(["**"]) + [ | |
| "//src/main/java/com/google/devtools/build/lib/util/io:srcs", | |
| "//src/main/java/com/google/devtools/build/lib/util/regex:srcs", | |
| ], | |
| visibility = ["//src/main/java/com/google/devtools/build/lib:__pkg__"], | |
| ) | |
| java_library( | |
| name = "bucket", | |
| srcs = ["Bucket.java"], | |
| deps = ["//src/main/java/com/google/devtools/build/lib/skybridge:skybridge_interface"], | |
| ) | |
| java_library( | |
| name = "decimal_bucketer", | |
| srcs = ["DecimalBucketer.java"], | |
| deps = [ | |
| ":bucket", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/guava:collect", | |
| ], | |
| ) | |
| java_library( | |
| name = "logging", | |
| srcs = ["LoggingUtil.java"], | |
| deps = [ | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:concurrent", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "var_int", | |
| srcs = [ | |
| "VarInt.java", | |
| ], | |
| ) | |
| java_library( | |
| name = "os", | |
| srcs = ["OS.java"], | |
| visibility = [ | |
| "//src/main/java/com/google/devtools/build/lib:build_lib", | |
| "//src/main/java/com/google/devtools/build/lib:full_access", # exposed to jcg/devtools/build/rpcs | |
| ], | |
| ) | |
| java_library( | |
| name = "classpath", | |
| srcs = ["Classpath.java"], | |
| visibility = [ | |
| "//src/main/java/com/google/devtools/build/docgen:__pkg__", | |
| "//src/main/java/com/google/devtools/build/lib:build_lib", | |
| "//src/test/java/com/google/devtools/build/lib/testutil:__pkg__", | |
| "//src/test/java/com/google/devtools/common/options:__pkg__", | |
| ], | |
| deps = ["//third_party/java/guava:reflect"], | |
| ) | |
| java_library( | |
| name = "env_var", | |
| srcs = ["EnvVar.java"], | |
| visibility = [ | |
| "//src/main/java/com/google/devtools/build/lib:build_lib", | |
| ], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec", | |
| "//src/main/java/com/google/devtools/common/options", | |
| ], | |
| ) | |
| java_library( | |
| name = "file_system_lock", | |
| srcs = ["FileSystemLock.java"], | |
| deps = [ | |
| ":string_encoding", | |
| "//src/main/java/com/google/devtools/build/lib/concurrent:thread_safety", | |
| "//src/main/java/com/google/devtools/build/lib/vfs", | |
| "//third_party/java/guava:annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "file_channels", | |
| srcs = ["FileChannels.java"], | |
| add_exports = ["java.base/sun.nio.ch"], | |
| deps = [ | |
| "//third_party/java/flogger", | |
| ], | |
| ) | |
| java_library( | |
| name = "single_line_formatter", | |
| srcs = ["SingleLineFormatter.java"], | |
| deps = [ | |
| "//third_party/java/guava:collect", | |
| ], | |
| ) | |
| java_library( | |
| name = "simple_log_handler", | |
| srcs = ["SimpleLogHandler.java"], | |
| deps = [ | |
| ":os", | |
| ":single_line_formatter", | |
| ":string_encoding", | |
| ":util", | |
| "//third_party/java/error_prone:annotations", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:io", | |
| "//third_party/java/guava:net", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "debug-logger-configurator", | |
| srcs = ["DebugLoggerConfigurator.java"], | |
| ) | |
| java_library( | |
| name = "server_log_path_service", | |
| srcs = ["ServerLogPathService.java"], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/runtime:blaze_service", | |
| "//src/main/java/com/google/devtools/build/lib/skybridge:skybridge_interface", | |
| ], | |
| ) | |
| java_library( | |
| name = "server_log_path_service_impl", | |
| srcs = ["ServerLogPathServiceImpl.java"], | |
| deps = [ | |
| ":server_log_path_service", | |
| ":util", | |
| "//src/main/java/com/google/devtools/build/lib/skybridge:sc_only", | |
| ], | |
| ) | |
| java_library( | |
| name = "describable_execution_unit", | |
| srcs = ["DescribableExecutionUnit.java"], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/cmdline", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "script_util", | |
| srcs = ["ScriptUtil.java"], | |
| deps = [ | |
| ":os", | |
| ":shell_escaper", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "command", | |
| srcs = [ | |
| "CommandBuilder.java", | |
| "CommandUtils.java", | |
| ], | |
| deps = [ | |
| ":command_failure_utils", | |
| ":os", | |
| "//src/main/java/com/google/devtools/build/lib/shell", | |
| "//src/main/java/com/google/devtools/build/lib/vfs", | |
| "//third_party/java/error_prone:annotations", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "command_failure_utils", | |
| srcs = [ | |
| "CommandDescriptionForm.java", | |
| "CommandFailureUtils.java", | |
| ], | |
| deps = [ | |
| ":describable_execution_unit", | |
| ":script_util", | |
| "//src/main/java/com/google/devtools/build/lib/cmdline", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "maybe_complete_set", | |
| srcs = ["MaybeCompleteSet.java"], | |
| deps = [ | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "resource_converter", | |
| srcs = [ | |
| "ResourceConverter.java", | |
| ], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/actions:localhost_compute_resources", | |
| "//src/main/java/com/google/devtools/common/options", | |
| "//third_party/java/error_prone:annotations", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/guava:primitives", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "cpu_resource_converter", | |
| srcs = [ | |
| "CpuResourceConverter.java", | |
| ], | |
| deps = [ | |
| ":resource_converter", | |
| "//third_party/java/guava:collect", | |
| ], | |
| ) | |
| java_library( | |
| name = "shallow_object_size_computer", | |
| srcs = ["ShallowObjectSizeComputer.java"], | |
| ) | |
| java_library( | |
| name = "object_graph_traverser", | |
| srcs = ["ObjectGraphTraverser.java"], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/collect:concurrent_identity_set", | |
| "//third_party/java/flogger", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "memory_accountant", | |
| srcs = ["MemoryAccountant.java"], | |
| deps = [ | |
| ":object_graph_traverser", | |
| ":shallow_object_size_computer", | |
| "//third_party/java/guava:collect", | |
| ], | |
| ) | |
| java_library( | |
| name = "ram_resource_converter", | |
| srcs = [ | |
| "RamResourceConverter.java", | |
| ], | |
| deps = [ | |
| ":resource_converter", | |
| "//third_party/java/guava:collect", | |
| ], | |
| ) | |
| java_library( | |
| name = "pair", | |
| srcs = [ | |
| "Pair.java", | |
| ], | |
| deps = [ | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "util", | |
| srcs = [ | |
| "AnsiStrippingOutputStream.java", | |
| "BytesSink.java", | |
| "CPU.java", | |
| "ClassName.java", | |
| "DependencySet.java", | |
| "Either.java", | |
| "FileHandlerQuerier.java", | |
| "Fingerprint.java", | |
| "JavaSleeper.java", | |
| "LatestObjectMetricExporter.java", | |
| "LogHandlerQuerier.java", | |
| "LoggingUtil.java", | |
| "LongArrayList.java", | |
| "MapCodec.java", | |
| "NetUtil.java", | |
| "OnDemandString.java", | |
| "OptionsUtils.java", | |
| "OrderedSetMultimap.java", | |
| "OsUtils.java", | |
| "PathFragmentFilter.java", | |
| "PersistentMap.java", | |
| "RegexFilter.java", | |
| "ResourceFileLoader.java", | |
| "Sleeper.java", | |
| "StringIndexer.java", | |
| "ThreadUtils.java", | |
| "TimeUtilities.java", | |
| "UserUtils.java", | |
| ], | |
| exports = [ | |
| # vfs depends on the profiler and creates a cycle since we use Pair in profiler | |
| ":pair", | |
| ":deterministic_writer", | |
| ], | |
| deps = [ | |
| ":os", | |
| ":shell_escaper", | |
| ":string_encoding", | |
| ":thread_dump_analyzer", | |
| ":thread_dumper", | |
| "//src/main/java/com/google/devtools/build/lib/bugreport", | |
| "//src/main/java/com/google/devtools/build/lib/concurrent:thread_safety", | |
| "//src/main/java/com/google/devtools/build/lib/unsafe:string", | |
| "//src/main/java/com/google/devtools/build/lib/util/io", | |
| "//src/main/java/com/google/devtools/build/lib/vfs", | |
| "//src/main/java/com/google/devtools/build/lib/vfs:pathfragment", | |
| "//src/main/java/com/google/devtools/common/options", | |
| "//third_party/java/error_prone:annotations", | |
| "//third_party/java/flogger", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/guava:concurrent", | |
| "//third_party/java/guava:io", | |
| "//third_party/java/jsr305_annotations", | |
| "//third_party/java/protobuf:protobuf_lite", | |
| ], | |
| ) | |
| java_library( | |
| name = "deterministic_writer", | |
| srcs = [ | |
| "DeterministicWriter.java", | |
| "DeterministicWriterInputStream.java", | |
| ], | |
| deps = [ | |
| "//third_party/java/guava:io", | |
| "//third_party/java/protobuf", | |
| ], | |
| ) | |
| java_library( | |
| name = "byte_string_deterministic_writer", | |
| srcs = ["ByteStringDeterministicWriter.java"], | |
| deps = [ | |
| ":deterministic_writer", | |
| "//third_party/java/protobuf", | |
| ], | |
| ) | |
| java_library( | |
| name = "proto_deterministic_writer", | |
| srcs = ["ProtoDeterministicWriter.java"], | |
| deps = [ | |
| ":deterministic_writer", | |
| "//third_party/java/protobuf", | |
| ], | |
| ) | |
| java_library( | |
| name = "filetype", | |
| srcs = [ | |
| "FileType.java", | |
| "FileTypeSet.java", | |
| ], | |
| deps = [ | |
| ":os", | |
| ":string", | |
| "//src/main/java/com/google/devtools/build/lib/skyframe/serialization:visible-for-serialization", | |
| "//src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec", | |
| "//src/main/java/com/google/devtools/build/lib/skyframe/serialization/autocodec:serialization-constant", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "TestType", | |
| srcs = ["TestType.java"], | |
| ) | |
| java_library( | |
| name = "resource_usage", | |
| srcs = [ | |
| "ResourceUsage.java", | |
| ], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/unix:procmeminfo_parser", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:io", | |
| ], | |
| ) | |
| java_library( | |
| name = "shell_escaper", | |
| srcs = [ | |
| "GccParamFileEscaper.java", | |
| "ShellEscaper.java", | |
| "WindowsParamFileEscaper.java", | |
| ], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/concurrent:thread_safety", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/guava:escape", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "string_encoding", | |
| srcs = ["StringEncoding.java"], | |
| deps = [ | |
| ":os", | |
| "//src/main/java/com/google/devtools/build/lib/unsafe:string", | |
| "//third_party/java/guava:base", | |
| ], | |
| ) | |
| java_library( | |
| name = "string", | |
| srcs = [ | |
| "StringUtil.java", | |
| "StringUtilities.java", | |
| ], | |
| deps = [ | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:collect", | |
| "//third_party/java/guava:escape", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "abrupt_exit_exception", | |
| srcs = ["AbruptExitException.java"], | |
| deps = [ | |
| ":detailed_exit_code", | |
| ":exit_code", | |
| ":serialized_abrupt_exit_exception", | |
| "//src/main/protobuf:failure_details_java_proto", | |
| "//third_party/java/jsr305_annotations", | |
| "//third_party/java/protobuf:protobuf_lite", | |
| ], | |
| ) | |
| java_library( | |
| name = "serialized_abrupt_exit_exception", | |
| srcs = ["SerializedAbruptExitException.java"], | |
| deps = ["//src/main/java/com/google/devtools/build/lib/skybridge:skybridge_interface"], | |
| ) | |
| java_library( | |
| name = "exit_code", | |
| srcs = ["ExitCode.java"], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/skybridge:skybridge_interface", | |
| "//third_party/java/error_prone:annotations", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "custom_exit_code_publisher", | |
| srcs = ["CustomExitCodePublisher.java"], | |
| deps = [ | |
| "//third_party/java/flogger", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "custom_failure_detail_publisher", | |
| srcs = ["CustomFailureDetailPublisher.java"], | |
| deps = [ | |
| "//src/main/protobuf:failure_details_java_proto", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "detailed_exit_code", | |
| srcs = ["DetailedExitCode.java"], | |
| deps = [ | |
| ":exit_code", | |
| "//src/main/protobuf:failure_details_java_proto", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/jsr305_annotations", | |
| "//third_party/java/protobuf", | |
| ], | |
| ) | |
| java_library( | |
| name = "crash_failure_details", | |
| srcs = ["CrashFailureDetails.java"], | |
| deps = [ | |
| ":detailed_exit_code", | |
| "//src/main/protobuf:failure_details_java_proto", | |
| "//third_party/java/flogger", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:collect", | |
| ], | |
| ) | |
| java_library( | |
| name = "hash_codes", | |
| srcs = ["HashCodes.java"], | |
| deps = ["//third_party/java/jsr305_annotations"], | |
| ) | |
| java_library( | |
| name = "heap_offset_helper", | |
| srcs = ["HeapOffsetHelper.java"], | |
| deps = [ | |
| ":TestType", | |
| "//src/main/java/com/google/devtools/build/lib/bugreport", | |
| "//third_party/java/flogger", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/guava:base", | |
| ], | |
| ) | |
| java_library( | |
| name = "interrupted_failure_details", | |
| srcs = ["InterruptedFailureDetails.java"], | |
| deps = [ | |
| ":abrupt_exit_exception", | |
| ":detailed_exit_code", | |
| "//src/main/protobuf:failure_details_java_proto", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "concurrency_meter", | |
| srcs = ["ConcurrencyMeter.java"], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/clock", | |
| "//third_party/java/error_prone:annotations", | |
| "//third_party/java/guava:annotations", | |
| "//third_party/java/guava:base", | |
| "//third_party/java/guava:concurrent", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "blocker", | |
| srcs = ["Blocker.java"], | |
| add_exports = ["java.base/jdk.internal.misc"], | |
| ) | |
| java_library( | |
| name = "thread_dumper", | |
| srcs = ["ThreadDumper.java"], | |
| add_exports = ["java.base/jdk.internal.vm"], | |
| ) | |
| java_library( | |
| name = "thread_dump_analyzer", | |
| srcs = ["ThreadDumpAnalyzer.java"], | |
| ) | |
| java_library( | |
| name = "value_or_exception", | |
| srcs = ["ValueOrException.java"], | |
| deps = [ | |
| "//third_party/java/guava:base", | |
| ], | |
| ) | |
| java_library( | |
| name = "temp_path_generator", | |
| srcs = ["TempPathGenerator.java"], | |
| deps = [ | |
| "//src/main/java/com/google/devtools/build/lib/vfs", | |
| "//third_party/java/jsr305_annotations", | |
| ], | |
| ) | |
| java_library( | |
| name = "cleaner", | |
| srcs = ["BazelCleaner.java"], | |
| ) | |
| java_library( | |
| name = "markdown", | |
| srcs = ["Markdown.java"], | |
| deps = [ | |
| "//third_party/java/commonmark", | |
| ], | |
| ) |