
Explore how Gradle automates building, testing, publishing, and deployment for Java applications, manages dependencies, and navigates project structure, tasks, and library modules through hands-on exercises.
Explore Gradle fundamentals by outlining why it was developed and how it works for Java projects. Learn to manage dependencies, modularize with Gradle modules, and profile builds for performance.
Install the Java development kit, download and manually install Gradle, add the installation to your path, verify with gradle -v, and create a hello world task in build.gradle.
Learn how the Gradle wrapper standardizes a project's Gradle version by checking in wrapper files, enabling builds with a downloaded distribution and simplifying continuous integration.
Learn to build with Gradle in IntelliJ IDEA Community Edition by creating a project, using the Gradle wrapper, and running the HelloWorld task from the Gradle panel.
Learn how Gradle defines and executes tasks, from ad hoc to typed tasks, and how to copy files, archive them into a zip, and manage task dependencies.
Builds a directed acyclic graph of tasks and explains initialization, configuration, and execution phases. Learn to enforce ordering with depends on, must run after, and finalize by.
This course has recently been updated. Section 6 contains the older version for your reference.
Explore the existing Java project structure, including source main Java and source main resources, and automate with the Gradle Java plugin by creating build.gradle and Gradle wrapper.
Publish a library with Gradle using the Maven publish plugin to a Maven repository, configuring the Java component (the jar), groupId, artifactId, and version, and running the publish task.
Write tests alongside production code using JUnit five in a Gradle Java project. Configure test implementation and test runtime dependencies, including JUnit Jupiter API and engine, and run tests.
Run tests with Gradle by enabling the JUnit platform and executing test task, then review html and xml reports, tune test logging to show started, skipped, and failed tests.
Conclude by reinforcing how Gradle automates Java project tasks, explores next steps like publishing to Maven Central, and using plugins for static analysis tools such as Sonarqube, Findbugs, and PMD.
Install Gradle and Java, set up the IntelliJ community edition, and use chapter-based exercise files to build and compare begin and end projects.
Apply Java plugin in build.gradle to make Gradle Java aware and expose tasks like clean, compile, assemble, and test, while declaring dependencies and repositories for Json 2.8.0 from Maven Central.
Explore groovy basics for gradle by learning enough to edit the build.gradle file, run groovy in the gradle console in IntelliJ, and leverage closures.
Explore the Gradle project object model, including the project, tasks, and actions, and learn how build.gradle defines and modifies these objects and exposes properties and tasks.
Manage dependencies by declaring them in repositories, inspect compile and test configurations, resolve transitive conflicts, and save HTML dependency reports for archival with Gradle and the project report plugin.
Create a new Gradle library module in IntelliJ, move Json display code into the module, and wire up dependencies so the root project uses the Json display library.
Discover how to use the Gradle view tool in IntelliJ to run tasks with a graphical interface, inspect tasks and the task graph, and compare GUI output with the terminal.
Extend gradle tasks by creating a show date task that extends the default task, then customize it with a custom show date, showcasing Groovy and Java DSL usage.
Profile a Gradle build by running with --profile and open the profile report in the build directory to analyze task times, dependency resolution, and history over time.
Gradle is an extensive build tool and dependency manager for programming projects. Gradle can automate the building, testing, publishing, deployment and more of software packages or other types of projects such as generated static websites, generated documentation or anything else.
In this course students will learn the core concepts of Gradle and how to use Gradle to manage building, testing and deploying your Java application.
We will first go through some Gradle fundamentals and how to build a Java project with Gradle, add a dependency to a project, and create a library module. We'll also get into the Gradle project structure, Gradle tasks, Gradle in the cloud, and more.
Students will learn by doing, by working through exercises designed to build on the presented material and explore.