Skip to content

Commit

Permalink
Add toolJar compile error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jap963852741 committed Jan 7, 2022
1 parent 52a8cf8 commit 10d91da
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions annotation/compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apply plugin: 'java'
configurations {
// adapted from https://android.googlesource.com/platform/frameworks/testing/+/976c423/espresso/espresso-lib/build.gradle
// compileOnly dependencies will be repackaged, see rules in jarjar ant task below
jarjar
jarjar
}

dependencies {
Expand All @@ -18,7 +18,11 @@ dependencies {
compileOnly "com.google.code.findbugs:jsr305:${JSR_305_VERSION}"
compile project(':annotation')
// This is to support com.sun.tools.javac.util.List, currently used in RootModuleGenerator.
compile files(Jvm.current().getToolsJar())
def toolsJar = Jvm.current().getToolsJar()
if (!toolsJar)
throw new GradleException("tools.jar not found at your JAVA_HOME dir ${Jvm.current().getJavaHome().getAbsolutePath()}.\n Please resetting your jdk")
testCompile files(toolsJar)

annotationProcessor "com.google.auto.service:auto-service:${AUTO_SERVICE_VERSION}"
}

Expand Down

0 comments on commit 10d91da

Please sign in to comment.