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:
jart 2016-03-04 17:56:25 -08:00 committed by Justine Tunney
parent ab26b288c1
commit a063508b5b
33 changed files with 124 additions and 70 deletions

View file

@ -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",
],
)