Search code examples
gradlejavadoc

Gradle's javadoc goal does not copy files from doc-files


I found that gradle's javadoc task does not copy files from doc-files subdirectories of package directories.

Is this possible to fix it?


Solution

  • Probably yes. You can add an action to javadoc with <<:

    javadoc << {
       //copy all the files here
    }
    

    or create a task that will finalize javadoc and copy the files:

    task copySub(type: Copy) {
       //configuration goes here
    }
    
    javadoc.finalizedBy(copySub)