Skip to content

Commit

Permalink
Support building+testing Dagger with Java 9
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=167196934
  • Loading branch information
ronshapiro committed Sep 7, 2017
1 parent b449911 commit 772374b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions java/dagger/internal/codegen/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ CODEGEN_SHARED_DEPS = [
"//third_party:google_java_format",
"//third_party:javapoet",
"@local_jdk//:lib/tools.jar",
"//third_party:jsr250_annotations",
"//third_party:jsr305_annotations",
"//third_party:jsr330_inject",
"//java/dagger:core",
Expand Down
1 change: 1 addition & 0 deletions javatests/dagger/internal/codegen/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ GenJavaTests(
"//third_party:compile_testing",
"//third_party:guava",
"//third_party:javapoet",
"//third_party:jsr250_annotations",
"//third_party:jsr330_inject",
"//third_party:junit",
"//third_party:mockito",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public DaggerModuleMethodSubject getSubject(FailureStrategy fs, String that) {
private ImmutableList.Builder<String> imports =
new ImmutableList.Builder<String>()
.add(
// explicitly import Module so it's not ambiguous with java.lang.Module
"import dagger.Module;",
"import dagger.*;",
"import dagger.multibindings.*;",
"import dagger.producers.*;",
Expand Down
4 changes: 2 additions & 2 deletions third_party/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package(default_visibility = ["//visibility:public"])

java_library(
name = "jsr_250",
name = "jsr250_annotations",
exports = ["@javax_annotation_jsr250_api//jar"],
)

Expand Down Expand Up @@ -113,7 +113,7 @@ java_library(
],
tags = ["maven:compile_only"],
exports = [
":jsr_250",
":jsr250_annotations",
"@com_google_auto_value_auto_value//jar",
],
)
Expand Down

0 comments on commit 772374b

Please sign in to comment.