"Gradle Tutorial" Chapter 1. Introduction

Source: Internet
Author: User

Using Androidstudio to develop Android also has a period of time, Androidstudio use of the build tool has not been how to learn, there is a problem is basically Google and Baidu to solve, today suddenly want to get to know gradle, so go to official website , a casual translation, deepen understanding!

We would like-to-introduce Gradle to you, a build system, we think are a quantum leap for build technology in the Java (JVM) world.

We'll introduce you to Gradle, a build tool that we think is a great breakthrough in the Java (JVM) Architecture Project Technology

Gradle provides: (Gradle offers:)

A very flexible general purpose build tool like Ant.

A versatile and flexible tool like Ant
Switchable, build-by-convention frameworks a la Maven. But we never lock you in!

A switchable, contract-based build framework like Maven that never locks you (contract is better than configuration)
Very powerful support for multi-project builds.

Strong support for multi-project builds
Very powerful dependency management (based on Apache Ivy).

Strong support for dependency management (Apache Ivy based)

Full your existing Maven or Ivy repository infrastructure.

Comprehensive support for existing MAVEN and Ivy warehouses

Support for transitive dependency management without the need for remote repositories or pom.xml and ivy.xml files.

Support for transitive dependency management without the need for remote repositories or pom.xml and ivy.xml configuration files
Ant tasks and builds as first class citizens.

Gradle is good for ant tasks and building the equivalent of a one-class citizen, that is, compatible with them


Groovy build Scripts.

Support for scripting Gradle in groovy language
A rich domain model for describing your build.

Have a rich domain model to build your scripts

Feel that the personal skill is not deep, the first chapter introduces Gradle or there is a very understanding of the place, some concepts need to understand.

① Build Tool

Build Automation (English: Build automation), also known as Building Automation , Building Automation , the daily work of software designers to automate the technical or scripting language, automated tools and technology to complete.

The main include:

    1. Compile the source code into binary code with the compiler.
    2. Package binary codes into packages.
    3. Perform unit tests.
    4. Deploy the software (software deployment).
    5. Generate files with release notes.

② conventions better than configuration

Http://zh.wikipedia.org/wiki/%E7%BA%A6%E5%AE%9A%E4%BC%98%E4%BA%8E%E9%85%8D%E7%BD%AE

The convention is better than configuration (conventionover config) [1], also known as Convention programming [2], is a software design paradigm designed to reduce the number of decisions that software developers need to make, Gain simple benefits without sacrificing flexibility.

The essence is that developers only need to specify the parts of the application that are not in conformity with the agreement. For example, if you have a class named sale in your model, the corresponding table in the database is named Sales by default. Only when you deviate from this convention, for example by naming the table "Products_sold", should you write a configuration about that name.

If the conventions of the tools you use are consistent with what you expect, you can save the configuration and, conversely, you can configure them to achieve the way you expect them to.

"Gradle Tutorial" Chapter 1. Introduction

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.