mirror of
https://github.com/google/nomulus.git
synced 2025-05-16 17:37:13 +02:00
Make bazel build fully hermetic
We no longer reference @bazel_tools//third_party. All of our transitive dependencies are now specified explicitly in our WORKSPACE file. I also fixed the way that jar dependencies are exported, so we don't break strict dependency checking. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=116421176
This commit is contained in:
parent
ab26b288c1
commit
a063508b5b
33 changed files with 124 additions and 70 deletions
6
third_party/java/apache_mina/BUILD
vendored
6
third_party/java/apache_mina/BUILD
vendored
|
@ -4,8 +4,6 @@ licenses(["notice"]) # Apache License 2.0
|
|||
|
||||
java_library(
|
||||
name = "core",
|
||||
exports = [
|
||||
"@mina_core//jar",
|
||||
"//third_party/java/slf4j_api",
|
||||
],
|
||||
exports = ["@mina_core//jar"],
|
||||
runtime_deps = ["//third_party/java/slf4j_api"],
|
||||
)
|
||||
|
|
6
third_party/java/apache_sshd/BUILD
vendored
6
third_party/java/apache_sshd/BUILD
vendored
|
@ -4,8 +4,6 @@ licenses(["notice"]) # Apache License 2.0
|
|||
|
||||
java_library(
|
||||
name = "apache_sshd",
|
||||
exports = [
|
||||
"@sshd_core//jar",
|
||||
"//third_party/java/apache_mina:core",
|
||||
],
|
||||
exports = ["@sshd_core//jar"],
|
||||
runtime_deps = ["//third_party/java/apache_mina:core"],
|
||||
)
|
||||
|
|
4
third_party/java/appengine_gcs_client/BUILD
vendored
4
third_party/java/appengine_gcs_client/BUILD
vendored
|
@ -4,8 +4,8 @@ licenses(["notice"]) # Apache License 2.0
|
|||
|
||||
java_library(
|
||||
name = "appengine_gcs_client",
|
||||
exports = [
|
||||
"@appengine_gcs_client//jar",
|
||||
exports = ["@appengine_gcs_client//jar"],
|
||||
runtime_deps = [
|
||||
"@google_api_client_appengine//jar",
|
||||
"@google_api_services_storage//jar",
|
||||
"@google_http_client_appengine//jar",
|
||||
|
|
9
third_party/java/appengine_mapreduce2/BUILD
vendored
9
third_party/java/appengine_mapreduce2/BUILD
vendored
|
@ -4,23 +4,22 @@ licenses(["notice"]) # Apache License 2.0
|
|||
|
||||
java_library(
|
||||
name = "appengine_mapreduce",
|
||||
exports = [
|
||||
"@appengine_mapreduce//jar",
|
||||
"@bazel_tools//third_party:guava",
|
||||
"@bazel_tools//third_party:joda_time",
|
||||
exports = ["@appengine_mapreduce//jar"],
|
||||
runtime_deps = [
|
||||
"@fastutil//jar",
|
||||
"@google_api_client//jar",
|
||||
"@google_api_client_appengine//jar",
|
||||
"@google_api_services_bigquery//jar",
|
||||
"@google_http_client_appengine//jar",
|
||||
"@google_http_client_jackson2//jar",
|
||||
"@guava//jar",
|
||||
"@jackson_core//jar",
|
||||
"@jackson_databind//jar",
|
||||
"@protobuf_java//jar",
|
||||
"//third_party/java/appengine:appengine-api",
|
||||
"//third_party/java/appengine_gcs_client",
|
||||
"//third_party/java/appengine_pipeline",
|
||||
"//third_party/java/charts4j",
|
||||
"//third_party/java/joda_time",
|
||||
"//third_party/java/servlet/servlet_api",
|
||||
],
|
||||
)
|
||||
|
|
7
third_party/java/appengine_pipeline/BUILD
vendored
7
third_party/java/appengine_pipeline/BUILD
vendored
|
@ -4,11 +4,10 @@ licenses(["notice"]) # Apache License 2.0
|
|||
|
||||
java_library(
|
||||
name = "appengine_pipeline",
|
||||
exports = [
|
||||
"@appengine_pipeline//jar",
|
||||
"@bazel_tools//third_party:guava",
|
||||
exports = ["@appengine_pipeline//jar"],
|
||||
runtime_deps = [
|
||||
"@guava//jar",
|
||||
"@json//jar",
|
||||
"//third_party/java/appengine:appengine-api",
|
||||
"//third_party/java/appengine_gcs_client",
|
||||
"//third_party/java/servlet/servlet_api",
|
||||
],
|
||||
|
|
8
third_party/java/auto/BUILD
vendored
8
third_party/java/auto/BUILD
vendored
|
@ -31,7 +31,7 @@ java_plugin(
|
|||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"@auto_factory//jar",
|
||||
"@bazel_tools//third_party:guava",
|
||||
"@guava//jar",
|
||||
"@javawriter//jar",
|
||||
":auto_common",
|
||||
],
|
||||
|
@ -43,7 +43,7 @@ java_plugin(
|
|||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"@auto_service//jar",
|
||||
"@bazel_tools//third_party:guava",
|
||||
"@guava//jar",
|
||||
":auto_common",
|
||||
],
|
||||
)
|
||||
|
@ -54,8 +54,8 @@ java_plugin(
|
|||
visibility = ["//visibility:private"],
|
||||
deps = [
|
||||
"@auto_value//jar",
|
||||
"@bazel_tools//third_party:guava",
|
||||
"@bazel_tools//third_party:jsr305",
|
||||
"@guava//jar",
|
||||
":auto_common",
|
||||
"//third_party/java/jsr305_annotations",
|
||||
],
|
||||
)
|
||||
|
|
24
third_party/java/dagger/BUILD
vendored
24
third_party/java/dagger/BUILD
vendored
|
@ -10,34 +10,34 @@ java_library(
|
|||
java_library(
|
||||
name = "dagger-runtime",
|
||||
exports = [
|
||||
"@bazel_tools//third_party:jsr330_inject",
|
||||
"@dagger//jar",
|
||||
"//third_party/java/jsr330_inject",
|
||||
],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "dagger-producers",
|
||||
exports = [
|
||||
"@bazel_tools//third_party:guava",
|
||||
"@bazel_tools//third_party:jsr330_inject",
|
||||
"@dagger_producers//jar",
|
||||
"@guava//jar",
|
||||
"//third_party/java/jsr330_inject",
|
||||
],
|
||||
)
|
||||
|
||||
java_library(
|
||||
name = "dagger-compiler",
|
||||
exports = [
|
||||
"@bazel_tools//third_party:auto_common",
|
||||
"@bazel_tools//third_party:auto_service",
|
||||
"@bazel_tools//third_party:auto_value",
|
||||
"@bazel_tools//third_party:gson",
|
||||
"@bazel_tools//third_party:guava",
|
||||
"@bazel_tools//third_party:jsr305",
|
||||
"@bazel_tools//third_party:jsr330_inject",
|
||||
"@dagger_compiler//jar",
|
||||
exports = ["@dagger_compiler//jar"],
|
||||
runtime_deps = [
|
||||
"@gson//jar",
|
||||
"@guava//jar",
|
||||
":dagger-producers",
|
||||
":dagger-runtime",
|
||||
"//third_party/java/auto:auto_common",
|
||||
"//third_party/java/auto:auto_service",
|
||||
"//third_party/java/auto:auto_value",
|
||||
"//third_party/java/javapoet",
|
||||
"//third_party/java/jsr305_annotations",
|
||||
"//third_party/java/jsr330_inject",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
2
third_party/java/jetty/v6_1_22/BUILD
vendored
2
third_party/java/jetty/v6_1_22/BUILD
vendored
|
@ -8,6 +8,6 @@ java_library(
|
|||
exports = [
|
||||
"@jetty//jar",
|
||||
"@jetty_util//jar",
|
||||
"@servlet_api//jar",
|
||||
],
|
||||
runtime_deps = ["@servlet_api//jar"],
|
||||
)
|
||||
|
|
2
third_party/java/joda_time/BUILD
vendored
2
third_party/java/joda_time/BUILD
vendored
|
@ -4,5 +4,5 @@ licenses(["notice"]) # Apache License 2.0
|
|||
|
||||
java_library(
|
||||
name = "joda_time",
|
||||
exports = ["@bazel_tools//third_party:joda_time"],
|
||||
exports = ["@joda_time//jar"],
|
||||
)
|
||||
|
|
2
third_party/java/jsr305_annotations/BUILD
vendored
2
third_party/java/jsr305_annotations/BUILD
vendored
|
@ -4,5 +4,5 @@ licenses(["notice"]) # BSD License
|
|||
|
||||
java_library(
|
||||
name = "jsr305_annotations",
|
||||
exports = ["@bazel_tools//third_party:jsr305"],
|
||||
exports = ["@jsr305//jar"],
|
||||
)
|
||||
|
|
2
third_party/java/jsr330_inject/BUILD
vendored
2
third_party/java/jsr330_inject/BUILD
vendored
|
@ -4,5 +4,5 @@ licenses(["notice"]) # Apache 2.0
|
|||
|
||||
java_library(
|
||||
name = "jsr330_inject",
|
||||
exports = ["@bazel_tools//third_party:jsr330_inject"],
|
||||
exports = ["@jsr330_inject//jar"],
|
||||
)
|
||||
|
|
5
third_party/java/junit/BUILD
vendored
5
third_party/java/junit/BUILD
vendored
|
@ -5,5 +5,8 @@ licenses(["reciprocal"]) # Common Public License 1.0
|
|||
java_library(
|
||||
name = "junit",
|
||||
testonly = 1,
|
||||
exports = ["@bazel_tools//third_party:junit4"],
|
||||
exports = [
|
||||
"@hamcrest_core//jar",
|
||||
"@junit//jar",
|
||||
],
|
||||
)
|
||||
|
|
2
third_party/java/mockito/BUILD
vendored
2
third_party/java/mockito/BUILD
vendored
|
@ -5,5 +5,5 @@ licenses(["notice"]) # MIT
|
|||
java_library(
|
||||
name = "mockito",
|
||||
testonly = 1,
|
||||
exports = ["@bazel_tools//third_party:mockito"],
|
||||
exports = ["@mockito//jar"],
|
||||
)
|
||||
|
|
10
third_party/java/soy/BUILD
vendored
10
third_party/java/soy/BUILD
vendored
|
@ -4,20 +4,20 @@ licenses(["notice"]) # Apache License 2.0
|
|||
|
||||
java_library(
|
||||
name = "soy",
|
||||
exports = [
|
||||
exports = ["@soy//jar"],
|
||||
runtime_deps = [
|
||||
"@aopalliance//jar",
|
||||
"@asm//jar",
|
||||
"@asm_analysis//jar",
|
||||
"@asm_commons//jar",
|
||||
"@asm_util//jar",
|
||||
"@bazel_tools//third_party:guava",
|
||||
"@bazel_tools//third_party:jsr305",
|
||||
"@bazel_tools//third_party:jsr330_inject",
|
||||
"@guava//jar",
|
||||
"@guice//jar",
|
||||
"@guice_assistedinject//jar",
|
||||
"@guice_multibindings//jar",
|
||||
"@icu4j//jar",
|
||||
"@soy//jar",
|
||||
"//third_party/java/jsr305_annotations",
|
||||
"//third_party/java/jsr330_inject",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
2
third_party/java/truth/BUILD
vendored
2
third_party/java/truth/BUILD
vendored
|
@ -5,5 +5,5 @@ licenses(["notice"]) # Apache License 2.0
|
|||
java_library(
|
||||
name = "truth",
|
||||
testonly = 1,
|
||||
exports = ["@bazel_tools//third_party:truth"],
|
||||
exports = ["@truth//jar"],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue