android tutorial - Gradle information of tags in android | Developer android - android app development - android studio - android app developement



Gradle - information of tags

Gradle: It is used to make build for any software, it is a Domain specific language used to configure and fulfill all plugins, libraries downloaded from repositories. Use Plugins:

Apply plugin: ‘com.android.application’
click below button to copy code from our android learning website - android tutorial - team

Plugin is property in key value form. In above statement denotes to key and right side string in single coats becomes its value. Gradle is DSL (Domain specific language): It contains different

blocks:Tags
click below button to copy code from our android learning website - android tutorial - team
repositories { } 
dependencies {}
android {} 
click below button to copy code from our android learning website - android tutorial - team

Repositories and dependencies are used to configure requirements for application code. Android block is used to add android specific code or information into application. We also generate our custom tags and define our own custom code, library and information. By using

“task” tag :
click below button to copy code from our android learning website - android tutorial - team
task genrateTestDb (depends on: ….) {
 }
click below button to copy code from our android learning website - android tutorial - team

Gradle files for any application

Build.gradle
click below button to copy code from our android learning website - android tutorial - team

-These file is working for all project. Settings.gradle – define all sub directories or projects are included in application.

Build.gradle
click below button to copy code from our android learning website - android tutorial - team

contains below:

repositories { 
mavenCentral()
}
click below button to copy code from our android learning website - android tutorial - team

Above repositories tag hold mevenCentral() it means all dependencies are downloaded from mevenCentral() .we can use jcenter() or any other source too. Dependencies block holds all compile time dependencies that’s should be downloaded from repositories

dependencies {
compile ‘org.codehous.groovy:groovy-all:2.3.2’
}
click below button to copy code from our android learning website - android tutorial - team

Above is meven library : syntax: org.codehous.groovy - > group id groovy-all - > order fact id , that’s is a name gradle used to identify library . 2.3.2’ - > version Settings.gradle – it’s include tag for all sub projects that’s is added into project

Include ‘googlechart’, ‘chuckgroovy’
click below button to copy code from our android learning website - android tutorial - team

Related Searches to Gradle information of tags in android