Book Image

Gradle Effective Implementations Guide - Second Edition

By : Hubert Klein Ikkink
Book Image

Gradle Effective Implementations Guide - Second Edition

By: Hubert Klein Ikkink

Overview of this book

Gradle is a project automation tool that has a wide range of applications. The basic aim of Gradle is to automate a wide variety of tasks performed by software developers, including compiling computer source code to binary code, packaging binary codes, running tests, deploying applications to production systems, and creating documentation. The book will start with the fundamentals of Gradle and introduce you to the tools that will be used in further chapters. You will learn to create and work with Gradle scripts and then see how to use Gradle to build your Java Projects. While building Java application, you will find out about other important topics such as dependency management, publishing artifacts, and integrating the application with other JVM languages such as Scala and Groovy. By the end of this book, you will be able to use Gradle in your daily development. Writing tasks, applying plugins, and creating build logic will be your second nature.
Table of Contents (18 chapters)
Gradle Effective Implementations Guide - Second Edition
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Summary


In this chapter, we discussed how to run JUnit or TestNG tests from a Gradle build. We also saw how to get the test results and reports that are generated by executing the tests.

With the application plugin, we discussed how to create a distributable ZIP file with all the code and scripts necessary to run the Java application that we have built.

We have also discussed how to upload our project artifacts to a repository so that other projects can use our code. We have seen that we can use Gradle to create an artifact that is ready to be uploaded to a Maven repository.

To digitally sign our artifacts, we saw how to use the signing plugin together with locally-installed PGP tools.

Also, we saw how we can use the war and ear plugins to create web and enterprise applications with Gradle. We can use tasks, methods, and configuration properties to configure the packaging output.

In the next chapter, we will look at how to run and create a multi-module project with Gradle. We will also discuss...