2014年12月27日

Gradle Goodness: Run a Build Script With a Different Name

摘要: 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... 阅读全文

posted @ 2014-12-27 20:45 为梦飞翔 阅读(208) 评论(0) 推荐(0) 编辑

Gradle Goodness: Group Similar Tasks

摘要: 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... 阅读全文

posted @ 2014-12-27 20:43 为梦飞翔 阅读(392) 评论(0) 推荐(0) 编辑

Gradle Goodness: Add Incremental Build Support to Tasks

摘要: 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... 阅读全文

posted @ 2014-12-27 20:41 为梦飞翔 阅读(368) 评论(0) 推荐(0) 编辑

Gradle Goodness: Add Incremental Build Support to Custom Tasks with Annotations

摘要: 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 ... 阅读全文

posted @ 2014-12-27 20:37 为梦飞翔 阅读(231) 评论(0) 推荐(0) 编辑

Gradle Goodness: Automatic Clean Tasks

摘要: 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... 阅读全文

posted @ 2014-12-27 20:33 为梦飞翔 阅读(252) 评论(0) 推荐(0) 编辑

Gradle Goodness: Excluding Tasks for Execution

摘要: In Gradle we can create dependencies between tasks. But we can also exclude certain tasks from those dependencies. We use the command-line option -x o... 阅读全文

posted @ 2014-12-27 20:28 为梦飞翔 阅读(271) 评论(0) 推荐(0) 编辑

Gradle Goodness: Display Available Tasks

摘要: 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... 阅读全文

posted @ 2014-12-27 20:16 为梦飞翔 阅读(249) 评论(0) 推荐(0) 编辑

Gradle Goodness: Parse Files with SimpleTemplateEngine in Copy Task

摘要: 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... 阅读全文

posted @ 2014-12-27 20:12 为梦飞翔 阅读(354) 评论(0) 推荐(0) 编辑

Gradle Goodness: Copy Files with Filtering

摘要: Gradle Goodness: Copy Files with FilteringGradle's copy task is very powerful and includes filtering capabilities. This means we can change the conten... 阅读全文

posted @ 2014-12-27 20:06 为梦飞翔 阅读(1238) 评论(0) 推荐(0) 编辑

Gradle Goodness: Renaming Files while Copying

摘要: With the Gradle copy task we can define renaming rules for the files that are copied. We use the rename() method of the copy task to define the naming... 阅读全文

posted @ 2014-12-27 19:53 为梦飞翔 阅读(600) 评论(0) 推荐(0) 编辑

导航