Usage Execute javadoc command and specify doclet with your source codes. Preparign custom task in your build.gradle would be easier to use. Example