Submitted by heartin on Fri, 04/25/2014 - 00:07
One of the features of Gradle that I like the most is its ability to interoperate with other popular build tools such as ANT and MAVEN. You can integrate and call your existing ant tasks from Gradle as simple as calling ant.<taskname> and Gradle makes this possible partly by leveraging Groovy’s AntBuilder functionality.
Submitted by heartin on Thu, 04/24/2014 - 13:17
We have already seen than a Gradle task is an object and each task has a type. We also saw that the default type for all tasks is the DefaultTask. There are also other task types available with more specific methods and properties like Copy, Jar etc. We can also create our own custom task types if none of the built in types match our requirement.
Submitted by heartin on Wed, 04/23/2014 - 09:01
Gradle tasks are actually objects and a task object has properties and methods just like any other object. By default, each new task receives a type of DefaultTask in Gradle (similar to how all classes are children of the Object class in Java). DefaultTask only contain the functionality required for them to interface with the Gradle project model and do not do any additional actions such as compiling or executing code. We already saw the important methods of DefaultTask. Now we will see the important properties.
Submitted by heartin on Wed, 04/23/2014 - 08:57
Gradle tasks are actually objects and a task object has properties and methods just like any other object. By default, each new task receives a type of DefaultTask in Gradle (similar to how all classes are children of the Object class in Java). DefaultTask only contain the functionality required for them to interface with the Gradle project model and do not do any additional actions such as compiling or executing code.
Submitted by heartin on Tue, 04/22/2014 - 23:19
Gradle lifecycle
Gradle lifecycle consist of three phases: initialization, configuration, and execution:
-
During Initialization, Gradle decides which projects are to participate in the build.
-
During Configuration, task objects are assembled into an internal object model, usually called the DAG (for directed acyclic graph).
Pages