//It seems the gradle javadoc task works file by file and as such disable some features of javadoc tool //such as link to packages, https://groups.google.com/d/msg/gradle-dev/R83dy_6PHMc/bgw0cUTMFAAJ javadoc { description "Creates javadoc html for Mockito API." // For more details on the format // see https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javadoc.html source = sourceSets.main.allJava destinationDir = file("$buildDir/javadoc") title = "Mockito ${project.version} API" // The way *gradle* javadoc task works and due to *gradle exclusion* the log output triggers javadoc warning and // errors on internal classes that are not found, non-exhaustive list : // // * import org.mockito.internal.Internal <- error: package org.mockito.internal does not exists // * import org.mockito.internal.Internal.util <- error: static import only from classes and interfaces // * class Public extends Internal <- cannot find symbol // * warning - Tag @linkplain: reference not found: org.mockito.internal.Internal internal stuff // * warning - Tag @link: reference not found: org.mockito.stubbing // // While there's errors the javadoc is still generated without those symbols or links ; // for this reason the javadoc output is suppressed and can be reactivated with --info option. exclude 'org/mockito/internal' logging.captureStandardError LogLevel.INFO logging.captureStandardOutput LogLevel.INFO // suppress "## warnings" message options.docTitle = """