fix to aggregateJavadoc task

This commit is contained in:
Steve Ebersole 2021-09-29 02:16:35 -05:00
parent 120019b343
commit aa514f7cfc
1 changed files with 3 additions and 1 deletions

View File

@ -205,7 +205,9 @@ task aggregateJavadocs(type: Javadoc) {
if ( gradle.ext.javaToolchainEnabled ) {
// Display version of Java tools
doFirst {
logger.lifecycle "Aggregating javadoc with '${javadocTool.get().metadata.installationPath}'"
if ( javadocTool.present ) {
logger.lifecycle "Aggregating javadoc with '${javadocTool.get().metadata.installationPath}'"
}
}
}
}