Oreilly - Practical Build Management with Gradle
by Izzet Mustafaiev | Released April 2017 | ISBN: 9781788293365
Master the Java Build pipeline using GradleAbout This VideoBuilt-in dependency management and dependency resolutionIntegration test and static code analysisParameterization, conditional execution, and plug-in APIsIn DetailThe 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. Show and hide more Publisher resources Download Example Code
- Chapter 1 : Introduction to Gradle
- The Course Overview 00:07:01
- What Is Gradle? 00:06:03
- GradleFeatures – from a Birds' Eye View 00:06:49
- Comparison of GradlewithOther Build Tools 00:04:19
- Installation and Setup 00:07:29
- Chapter 2 : First Steps with Gradle
- Hello, World! 00:05:31
- Declarative Builds 00:05:45
- Flexible Execution 00:06:08
- Wrapper 00:11:41
- Chapter 3 : Dependencies
- Built in Dependency Management 00:11:38
- Custom Configuration 00:03:27
- Dependency Resolution 00:06:50
- Build of Materials (BOM) 00:07:26
- Chapter 4 : Tasks
- What Is Task in Gradle? 00:08:29
- Organizing Tasks 00:08:20
- Copying and Filtering 00:08:05
- Incremental Builds 00:05:54
- Rules to Control Tasks 00:06:01
- Chapter 5 : Tests and Coverage
- Running Tests with Zero Effort 00:06:14
- Adding Integration Tests 00:06:37
- Coverage to Improve Confidence 00:11:48
- Chapter 6 : Code Quality Management
- How Code Quality Can be Managed? 00:04:56
- Ad-Hock Static Code Analysis 00:09:20
- Sustain Code Quality with SonarQube 00:08:35
- Chapter 7 : Build Once, Deploy Anytime
- What Is CI/CD? 00:06:59
- Artefacts and Repositories 00:10:28
- Artefacts Publishing 00:07:39
- Chapter 8 : Parameterize Execution
- Enabling Parameterization Using the gradle.propertiesFile 00:06:00
- Enabling Parameterization Using ExtraPropertiesExtension 00:04:26
- Parallel Execution 00:06:41
- Chapter 9 : Plug and Build
- Finding the Right Plugin 00:11:52
- Overviewing plugin API 00:06:25
- Creating Own Plugin 00:09:02
- Chapter 10 : Beyond Java
- Gradle’sPolyglot Nature 00:08:58
- Speeding up Build 00:24:10
- Composite Builds 00:07:56
Show and hide more