
gradle
xiatian6032
这个作者很懒,什么都没留下…
展开
-
新建基于eclipse的gradle工程
在D:/test目录中新建build.gradleapply plugin: 'java'apply plugin: 'eclipse'sourceCompatibility = 1.5version = '1.0'jar { manifest { attributes 'Implementation-Title' : 'Gradle Quickstart' , 'Impleme原创 2015-02-04 17:37:21 · 353 阅读 · 0 评论 -
gradle -- 依赖管理
声明依赖:apply plugin: 'java'repositories { mavenCentral()}dependencies { compile group: 'org.hibernate' , name: 'hibernate-core' , version: '3.6.7.Final' testCompile group: 'junit' , name: 'junit原创 2015-02-04 17:44:26 · 351 阅读 · 0 评论 -
gradle 命令行
如:gradle compile test 将执行compile 和testgradle dist test 将只执行一次compile-x : excluding tasksgradle dist -x test 将不执行test--continue : Continuing the build when a failure occurs支持任务名称缩写: g原创 2015-02-04 17:57:34 · 434 阅读 · 0 评论 -
Gradle中的task (二)高级篇 ----定义、创建、添加依赖
一、定义task的另外几种方式二、Locating tasks(1)(2)通过tasks(3)通过path二、Configuring tasks(1)创建一个copy类型的task(2)配置任务(3)以封装的形式配置task(4)定义一个封装的task三、增加依赖(1)从另一pr原创 2015-02-12 11:57:14 · 507 阅读 · 0 评论 -
gradle中的task(一)
1、创建task与依赖在build.gradle中task hello{ println "in main body of hello task" doFirst{ println "hello do first" } doLast{ println "hello do Last" }}task intro(dependsOn: hello) << {原创 2015-02-12 10:20:05 · 705 阅读 · 0 评论