In the next section, we will create our Javadoc by executing a Gradle task and then publish the Javadoc with a Hudson 3 post-build action.
Configure a build step in the Build section of the Job Configurations page, select the Invoke Gradle script option in the Add build step pull-down menu. Check the box next to Use Gradle Wrapper and leave the defaults for all the other fields. The Build section of the page should look similar to the following screenshot:
We will use the Gradle Wrapper to perform the build. The Gradle Wrapper is a script that will download and use the version of Gradle that the project was designed to be built with, which saves the effort of downloading and configuring Gradle yourself.
This javadoc
task will create a Javadoc for the project.