Gradle for Java-Based Applications and Libraries

8c9027d06b51638e29fcac4c109275401f5202a046eb80de8f65fcc20c9c733b
Description
This course provides a comprehensive guide to using Gradle for building and testing Java programs. It covers typical tasks such as compiling code, adding dependencies, running tests, and building a JAR file. The course also delves into the project structure and source code of a simple Java project, the application of the Java plugin for Gradle, and the generation of Javadocs. It further explores the basics of dependency management and the steps to test a Java project and fix a failed test suite. This course is a valuable resource for anyone looking to deepen their Gradle knowledge.
Learning Objectives
- Understanding the anatomy of a simple Java project
- Applying the Java plugin
- Compiling Java source code
- Packaging a JAR file
- Exploring the Java Application plugin
- Generating Javadocs for a Java project
- Understanding Dependency Management Basics
- Declaring a dependency on an external library
- Rendering the dependency tree
- Declaring a project dependency
- Using the Maven Publish plugin to publish a library
- Consuming an external dependency
- Using the JUnit 5 test framework
- Declaring JUnit dependencies
- Executing tests and inspecting the results
- Fixing a failed test suite