Join James Harmon for an in-depth discussion in this video How to use the exercise files, part of Gradle for Java Developers.
- [Instructor] There are exercise files available with this course. If you have access to them, feel free to download them to the desktop as I've done, and you can see I've got the exercise files folder in the upper right hand corner of my desktop. I'll open that. You'll notice that the files are organized by chapter number and video number. For example, 02_01 contains the exercise files for chapter 2, video 1. Within that folder, you'll see two other folders, the Begin and End folder.
The Begin folder will contain the files or projects you'll need for starting that particular video. In this case, you'll see that we have a folder called In Falling Leaves, that you'll be using in the exercises for chapter 2, video 1. The End folder contains the project in its final form at the end of that particular video. And you can use that to compare that to your own results. A couple of notes about this. First, many times, the end project from one video will the begin project for the next video.
This will allow you to continuously work through the course using mostly the same project. The next point I wanna make is that some folders don't have an end directory. That'll be the case when no changes have been made to the code during the video. Speaking of opening projects, there are two ways to accomplish this. The first is to launch the IntelliJ IDEA and open a project from the exercise files. Let me show you that. You can see that the third option on the welcome screen is open. I can use that to point to my exercise files and select in this case chapter 02, video 3.
I can drill down into the Begin folder and open up the GradaLab project. And now I'm in the GradaLabs. Let me show you an alternate way of doing that. I'll quit IntelliJ. I'll go back to chapter 2, video 3, look at the Begin project for GradaLab and I'll drag that down to my Start bar, and I'll place the project over the IntelliJ icon, and you'll notice that IntelliJ starts up again, and this time, it loads the project first automatically. Another point I'd like to make is that if you're opening a project from the exercise file folders, your file path will look a little different than mine on the screen.
Notice when IntelliJ loaded this project first automatically, on the left part of the screen in the project view, we can see that GradaLab is in the location Home, Desktop, Exercise Files, 02_03, Begin, GradaLab. That will be different than what you'll see in the videos, but that's okay. The location of the project really isn't that important. Rest assured that it doesn't change the content of your project file. Now that you know how the exercise files are set up, we can continue.
- The purpose of Gradle
- Building a Java project with Gradle
- Adding a dependency to a project
- Creating a library module
- The Gradle project structure
- Creating new Gradle tasks
- Profiling and using the Gradle cloud