【Gradle介绍】

一、Gradle介绍

官方介绍:

GRADLE = BUILD TOOL + CLOUD SERVICES

Gradle Cloud Services improve the effectiveness of your software delivery process by adding new capabilities to the Gradle Build Tool and offering new levels of insight into how you are building your software.

The first Cloud Service available enables users to create Build Scans: a permanent, centralized and shareable record offering deep insight into many aspects of the build. Build Scans can be used to optimize and debug builds, and make software development much more continuous, collaborative and data driven.

Gradle是一个基于Apache Ant和Apache Maven概念的项目自动化建构工具。它使用一种基于Groovy的特定领域语言(DSL)来声明项目设置,抛弃了基于XML的各种繁琐配置。

面向Java应用为主。当前其支持的语言限于Java、Groovy和Scala,计划未来将支持更多的语言。

 

 

扫描二维码关注公众号,回复: 349169 查看本文章

二、Gradle功能

1、 gradle对多工程的构建支持很出色,工程依赖是gradle的第一公民。

2、gradle支持局部构建。

  Ø 支持多方式依赖管理:包括从maven远程仓库、nexus私服、ivy仓库以及本地文件系统的jars或者dirs

3、 gradle是第一个构建集成工具(the first build integration tool),与ant、maven、ivy有良好的相容相关性。

4、轻松迁移:gradle适用于任何结构的工程(Gradle can adapt to any structure you have.)。你可以在同一个开发平台平行构建原工程和gradle工程。通常要求写相关测试,以保证开发的插件的相似性,这种迁移可以减少破坏性,尽可能的可靠。这也是重构的最佳实践。

5、 gradle的整体设计是以作为一种语言为导向的,而非成为一个严格死板的框架。

6、 免费开源

三、gradle提供了什么

1.一种可切换的,像maven一样的基于约定的构建框架,却又从不锁住你(约定优于配置)

Switchable, build-by-convention frameworks a la Maven. But we never lock you in!

2. 强大的支持多工程的构建

3. 强大的依赖管理(基于Apache Ivy),提供最大的便利去构建你的工程

Language for dependency based programming

4. 全力支持已有的Maven或者Ivy仓库基础建设

5. 支持传递性依赖管理,在不需要远程仓库和pom.xml和ivy配置文件的前提下

6 基于groovy脚本构建,其build脚本使用groovy语言编写

7 具有广泛的领域模型支持你的构建A rich domain model for describing your build.

猜你喜欢

转载自gaojingsong.iteye.com/blog/2315659