From the course: Gradle for Java-Based Applications and Libraries

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Generating Javadocs for a Java project

Solution: Generating Javadocs for a Java project

From the course: Gradle for Java-Based Applications and Libraries

Start my 1-month free trial

Solution: Generating Javadocs for a Java project

(upbeat music) - [Instructor] We'll get started by having a look at the gradle tasks list. And for that, we'll run the gradlew tasks task. And within here, hopefully we can find out what the task name is for the javadoc task. You can see here we have it listed right under Documentation tasks. So I would assume that is likely the task that we need to run to generate the API documentation. So we'll first run this, see what happens. It seems to be working properly. If you look here at the build output directory, you should find a new directory called build, docs, and then javadoc, so let's open that one. You can see here that's the full path to an index file that has been generated by this task, so let's open that one in the browser. And you can see here it lists both of our classes that we have in the project Calculator, so let's have a brief look here. That looks like our typical Javadoc representation. If you click on…

Contents