Gradle has a very powerful incremental build feature. This means Gradle will not execute a task unless it is necessary. We can help Gradle and configu...
分类:
其他好文 时间:
2014-12-27 21:45:24
阅读次数:
201
Gradle adds the task rule clean to our projects when we apply the base plugin. This task is able to remove any output files or directories we have def...
分类:
其他好文 时间:
2014-12-27 21:43:30
阅读次数:
296
In Gradle we can assign a task to a group. Gradle uses the group for example in the output of $ gradle -t to output all the tasks of the same group to...
分类:
其他好文 时间:
2014-12-27 21:39:47
阅读次数:
193
With the copy task of Gradle we can copy files that are parsed by Groovy's SimpleTemplateEngine. This means we can expand properties in the source fil...
分类:
其他好文 时间:
2014-12-27 21:38:19
阅读次数:
201
To see which tasks are available for our build we can run Gradle with the command-line option -t or --tasks. Gradle outputs the available tasks from o...
分类:
其他好文 时间:
2014-12-27 21:37:29
阅读次数:
208
In a previous post we learned how we can use the inputs and outputs properties to set properties or files that need to be checked to see if a task is ...
分类:
其他好文 时间:
2014-12-27 21:36:39
阅读次数:
168
Normally Gradle looks for a build script file with the name build.gradle in the current directory to execute a build. But we can easily use a differen...
分类:
其他好文 时间:
2014-12-27 21:36:08
阅读次数:
189
Ant 和 Maven构建工具都是用xml来描述任务结构的,总体而言打包项目等任务都可以,但毕竟xml的灵活性稍微差些,
新的企业构建工具Gradle就类似于linux上的shell脚本,采用Groovy动态语言编写脚本。...
分类:
编程语言 时间:
2014-12-27 20:28:44
阅读次数:
172
To create an archive with Gradle is easy. We have several tasks like Zip, Tar, Jar, War and Ear to create a new archive. But there is no UnZip or UnTa...
分类:
其他好文 时间:
2014-12-27 20:24:26
阅读次数:
171
Gradle Goodness: Copy Files with FilteringGradle's copy task is very powerful and includes filtering capabilities. This means we can change the conten...
分类:
其他好文 时间:
2014-12-27 20:23:43
阅读次数:
223