Practical Build Management with Gradle

Video Description

Master the Java Build pipeline using Gradle

About This Video

  • Built-in dependency management and dependency resolution

  • Integration test and static code analysis

  • Parameterization, conditional execution, and plug-in APIs

  • In Detail

    The aim of this course is to walk you through implementing comprehensive build pipelines step-by-step with Gradle for Java projects of any size. You'll set up a build for multi-module Java projects, ensure that business logic is covered by unit and even integration tests, and guarantee your code quality is always at an acceptable level and you’re ready to deliver changes.

    In the first of the three course sections, we will start by introducing you to Gradle: Why should you use it? Next, we will look at all the necessary aspects of creating a structure for Java projects, how to execute builds, and how to add and overview dependencies to compile Java source code Now that you have a good understanding of the key features of Gradle, in the middle core sections we will start to focus on supporting code quality management. With the project structure now built, we will turn our attention to leveraging Gradle's out-of-the-box capabilities to execute unit tests and cover source code with integration tests. We will introduce concepts to help you keep your Java source code aligned with industry best practices by leveraging static source code analysis tools. Finally on each build you can be sure that your code is not only compiles, but also the logic is correct and best practices have been applied.

    Towards the end we will focus on applying Gradle to individual use cases. We will delve into creating and organizing Gradle tasks and overview how to incorporate incremental tasks. Next, we will look at how to parameterize Gradle execution to support different build conditions. The section ends with an overview of the Gradle API and how to fulfill your project's unique needs by leveraging plug-ins and rules. Also, we'll explore the use cases Gradle can be applied to.

    Table of Contents

    1. Chapter 1 : Introduction to Gradle
      1. The Course Overview 00:07:01
      2. What Is Gradle? 00:06:03
      3. GradleFeatures – from a Birds' Eye View 00:06:49
      4. Comparison of GradlewithOther Build Tools 00:04:19
      5. Installation and Setup 00:07:29
    2. Chapter 2 : First Steps with Gradle
      1. Hello, World! 00:05:31
      2. Declarative Builds 00:05:45
      3. Flexible Execution 00:06:08
      4. Wrapper 00:11:41
    3. Chapter 3 : Dependencies
      1. Built in Dependency Management 00:11:38
      2. Custom Configuration 00:03:27
      3. Dependency Resolution 00:06:50
      4. Build of Materials (BOM) 00:07:26
    4. Chapter 4 : Tasks
      1. What Is Task in Gradle? 00:08:29
      2. Organizing Tasks 00:08:20
      3. Copying and Filtering 00:08:05
      4. Incremental Builds 00:05:54
      5. Rules to Control Tasks 00:06:01
    5. Chapter 5 : Tests and Coverage
      1. Running Tests with Zero Effort 00:06:14
      2. Adding Integration Tests 00:06:37
      3. Coverage to Improve Confidence 00:11:48
    6. Chapter 6 : Code Quality Management
      1. How Code Quality Can be Managed? 00:04:56
      2. Ad-Hock Static Code Analysis 00:09:20
      3. Sustain Code Quality with SonarQube 00:08:35
    7. Chapter 7 : Build Once, Deploy Anytime
      1. What Is CI/CD? 00:06:59
      2. Artefacts and Repositories 00:10:28
      3. Artefacts Publishing 00:07:39
    8. Chapter 8 : Parameterize Execution
      1. Enabling Parameterization Using the gradle.propertiesFile 00:06:00
      2. Enabling Parameterization Using ExtraPropertiesExtension 00:04:26
      3. Parallel Execution 00:06:41
    9. Chapter 9 : Plug and Build
      1. Finding the Right Plugin 00:11:52
      2. Overviewing plugin API 00:06:25
      3. Creating Own Plugin 00:09:02
    10. Chapter 10 : Beyond Java
      1. Gradle’sPolyglot Nature 00:08:58
      2. Speeding up Build 00:24:10
      3. Composite Builds 00:07:56

    Product Information

    • Title: Practical Build Management with Gradle
    • Author(s): Izzet Mustafaiev
    • Release date: April 2017
    • Publisher(s): Packt Publishing
    • ISBN: 9781788293365