Gradle plugin to ease defining Javadoc links
- Links to JDK javadoc of the used java version
- Links to javadoc of dependencies (javadoc.io URLs are used by default)
- Links project dependencies offline which enables linking to unpublished versions
- Works for subprojects (
include
insettings.gradle
) - Works for dependencies substituted by included builds (
includeBuild
insettings.gradle
)
- Works for subprojects (
plugins {
id("io.github.sgtsilvio.gradle.javadoc-links") version "0.8.0"
}
- Gradle 7.4 or higher
tasks.javadocLinks {
urlProvider = { id -> "https://javadoc.io/doc/${id.group}/${id.name}/${id.version}/" }
}
configurations.javadocLinks {
setExtendsFrom(listOf(configurations.apiElements.get()))
}