Introduction and installation of Gradle

Source: Internet
Author: User
Tags build gradle

Gradle Introduction Gradle is a JVM-based build tool that provides:
    • Like Ant, General-purpose, flexible build tools
    • A contract-based build framework that can be switched
    • Powerful multi-engineering build support
    • Strong dependency management based on Apache Ivy
    • Support Maven, Ivy Warehouse
    • Supports transitive dependency management without the need for a remote repository or a pom.xml and ivy.xml configuration file.
    • A good integration of Ant's mission
    • Using groovy to write based on Groovy,build scripts
    • Extensive domain model support for building
Gradle Overview 1, claims-based and contract-based builds. 2, a dependent programming language. 3, can be structured to build, easy to maintain and understand. 4, there are advanced APIs that allow you to monitor the core of a build execution, or configure its behavior. 5, with good extensibility. There are incremental build capabilities to overcome performance bottleneck issues. 6, multi-project build support. 7, multiple ways of relying on management. 8, is the first build integration tool. Integrates the capabilities of ant, Maven. 9, easy to move the value. 10, scripts are written in groovy and easy to maintain. 11, through Gradle wrapper allows you to build gradle on machines that do not have Gradle installed. 12, free, open source. Gradle Install 1, install the JDK, and configure the JAVA_HOME environment variable. Because Gradle is written in groovy, and groovy is based on Java. Also, the Java version is either less than 1.5.2, download. The address is: Http://www.gradle.org/downloads. Download the version you want here. 3, unzip. If you are downloading the full package of gradle-xx-all.zip, it will have the following content:
    • binary files
    • User manual (includes PDF and HTML two versions)
    • DSL Reference Guide
    • API manuals (including Javadoc and Groovydoc)
    • Sample Example
    • Source code, for informational use only.
4. Configure the environment variables. Configure Gradle_home to your GRADLE root directory, and then add the%gradle_home%/bin (Linux or Mac $gradle_home/bin) to the environment variable of path. Linux users can be configured in the ~/.BASHRC file. After the configuration is complete, run gradle-v and check to see if the installation is correct. If installed correctly, it will print out the version information of Gradle, including its build information, Groovy, Ant, Ivy, current JVM and current system version information. In addition, the JVM parameters of the Gradle runtime can be configured through gradle_opts or java_opts. However, the parameters set by java_opts also affect other JAVA applications.

Introduction and installation of Gradle

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.