ITeye博客

初识gradle

zhb8015 · 2015-06-04 14:07 · VersionManage · 非技术 · Markdown

Concept

         Gradle 是以 Groovy 语言为基础,面向Java应用为主。基于DSL(领域特定语言)语法的自动化构建工具。

 

    Script

         编写gradle脚本下载Spring4的依赖:

 

         build.gradle

apply plugin: 'java'

repositories {
	mavenCentral()
}

dependencies {
	compile 'org.springframework:spring-context:4.1.6.RELEASE'
}

task copyJars(type:Copy) {
	from configurations.runtime
	into 'libs'
}

 

     Run

          gradle build

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。