Gradle for Java-Based Applications and Libraries

Gradle for Java-Based Applications and Libraries

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 0h 57m | 146 MB

Gradle makes building and testing Java programs easy with its compelling feature set. This course teaches the typical tasks needed to work with a Java project, including compiling code, adding dependencies, running tests, and building a JAR file. You will need a basic knowledge of the Java programming language to complete this course. Instructor Benjamin Muschko walks you through the project structure and source code of a simple Java project, then shows how to apply and explore the Java plugin for Gradle. The course explains how to generate Javadocs for a Java project. Benjamin covers the basics of dependency management. He steps through each task you need to complete, to test a Java project and fix a failed test suite. Plus, Benjamin provides some additional learning resources to deepen your Gradle knowledge.

Table of Contents

1 Building a Java project simplified
2 What you should know
3 Anatomy of a simple Java project
4 Applying the Java plugin
5 Compiling Java source code
6 Packaging a JAR file
7 Exploring the Java Application plugin
8 Challenge Generating Javadocs for a Java project
9 Solution Generating Javadocs for a Java project
10 Mechanics of dependency management
11 Declaring a dependency on an external library
12 Rendering the dependency tree
13 Declaring a project dependency
14 Using the Maven Publish plugin to publish a library
15 Challenge Consuming an external dependency
16 Solution Consuming an external dependency
17 Using the JUnit 5 test framework
18 Declaring JUnit dependencies
19 Executing tests and inspecting the results
20 Challenge Fix a failed test suite
21 Solution Fix a failed test suite
22 Next steps