Is possible to automatically link a Module in a Gradle project to the Javadoc of its dependencies?

Answered

I have a Gradle project consisting of an Android application module. I see that IntelliJ is able to automatically link to the Sources of the module's dependencies but it's not able to automatically link to the Javadoc of the dependencies. This is a problem when needing to inspect the Javadoc of a dependency which publishes Javadoc but not Sources.

I have specified downloadJavadoc to true in the build.gradle file and I can see by inspecting the ~/.gradle/caches/modules-2/files-2.1 folder on my machine that the Javadoc for the dependencies has indeed been downloaded.

I see however when inspecting the xml files in the .idea/libraries folder in my project that the JAVADOC tag is always empty. (The SOURCES tag is filled correctly whenever there is Source available for a given dependency.)

I know I can navigate into Project Settings in IntelliJ and manually specify Documentation URL for a given dependency but this is a bit of a faff. Is there no way for IntelliJ to automatically link to the Javadoc of a module's dependency's?

 

0

Please sign in to leave a comment.