官术网_书友最值得收藏!

Chapter 1. Starting with Gradle

When we develop a software, we write, compile, test, package, and finally, distribute the code. We can automate these steps by using a build system. The big advantage is that we have a repeatable sequence of steps. The build system will always follow the steps that we have defined, so we can concentrate on writing the actual code and don't have to worry about the other steps.

Gradle is one such build system.

In this chapter, we will cover the following topics:

  • Getting started with Gradle
  • Writing our first build script
  • Looking at default tasks
  • Learning about command-line options
  • Discussing the Gradle graphical user interface

Gradle is a tool for build automation. With Gradle, we can automate compiling, testing, packaging, and deployment of our software or any other types of projects. Gradle is flexible, but has sensible defaults for most projects. This means that we can rely on the defaults if we don't want something special, but we can still can use the flexibility to adapt a build to certain custom needs.

Gradle is already used by large open source projects such as Spring, Hibernate, and Grails. Enterprise companies such as LinkedIn and Netflix also use Gradle.

In this chapter, we will explain what Gradle is and how to use it in our development projects.

Let's take a look at some of Gradle's features.

主站蜘蛛池模板: 临江市| 大关县| 鄂托克旗| 吴川市| 亳州市| 信阳市| 浪卡子县| 百色市| 石景山区| 金寨县| 合山市| 宿松县| 衡山县| 峨边| 东阳市| 葫芦岛市| 星子县| 定结县| 顺义区| 逊克县| 铅山县| 大余县| 郑州市| 普洱| 南京市| 宁远县| 神木县| 金坛市| 儋州市| 抚顺市| 桂阳县| 老河口市| 通道| 东至县| 咸丰县| 平凉市| 盐城市| 鄂州市| 巍山| 万安县| 邻水|