Post on 17-Feb-2017
Embed Size (px)
Gradle build scripts are not written in the traditional XML, but in a domain-specific language (DSL) based on GroovyThat does not mean you need to know Groovy to get started with your build scripts.
Initialization: This is where the Project instance is created. If there are multiple modules each of them must have their own build.gradle file.
Configuration: creating and configuring all the tasks for every project object.
Execution: Which tasks should be executed depends on the arguments passed for starting the build and what the current directory is.
Working with Repositories
Maven repositoriesIvy repositories
Must include the appropriate meta data. Can be identified and retrieved by a unique set of coordinates.If an artifact has dependencies of its own, that is also specified.
specific dependencyGroup of dependenciesFile CollectionFile Tree
TasksA task represents some atomic piece of work which a build performs. This might be compiling some classes, creating a JAR, generating Javadoc, or publishing some archives to a repository.