How to add compilation dependency to javadoc class path in gradle

In gradle, if my project depends on another package, for example:

compile 'com.example: foo: 0.82.2'

And in my javadoc it refers to the character in this package.

Then, if I run the javadoc task, it will say an error: link not found

I know that I have to add this package to the class path, just like the following way to add android library

classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) 

But how can I find out the class path for my dependency other than adding a hard coding point to the gradle cache?

+7
java android gradle
source share

No one has answered this question yet.

See similar questions:

183
How to generate javadoc comments in Android Studio
nine
Android Studio Javadoc: cannot find character

or similar:

2240
How to create an executable dependency JAR using Maven?
947
Android Studio: add jar as a library?
773
What is the difference between implementation and compilation in Gradle?
690
"cannot resolve R character" in Android Studio
478
IntelliJ inspection gives "Unable to resolve character" but still compiles code
425
How to make gradle reload dependencies?
401
Automatically accept all SDK licenses
369
How to manually enable an external aar package using the new Gradle Android Build system
7
Gradle Javadoc Task Without Warnings
6
How to generate javadoc for android library when it has dependencies which are also aar libraries?

All Articles