Reputation: 5049
Is there an equivalent diagram to this for the Android gradle plugin?
https://docs.gradle.org/current/userguide/java_plugin.html#N12255
Upvotes: 26
Views: 3473
Reputation: 6356
I haven't found any diagram for Android gradle plugin, BUT I've found a way to create it for any project/library/module.
Add Inspector
library to your top level gradle.build
file and execute task you want to inspect. Then check ./buildProfile/report
folder.
Just for instance my top level build.gradle
file
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
classpath "gradle.plugin.com.jakeout:inspector:0.3.0"
}
}
allprojects {
apply plugin: "com.jakeout.gradle-inspector"
repositories {
jcenter()
}
}
Here is part of report for my simple project:
P.S. Maybe, generated image is not that good as created by Gradle team, but good enough to understand dependencies in your project/library/module.
Upvotes: 6
Reputation: 342
This link may have what you are looking for (best I could find):
When Gradle's hooks are added in build lifecycle?
https://github.com/akhikhl/gradle-onejar
http://www.sinking.in/blog/provided-scope-in-gradle/ (Diagram partway down the page)
Upvotes: 0
Reputation: 5049
Putting this here, because it is the closest I've found so far...but it doesn't explicitly reference the gradle tasks required to reach these steps... :(
http://tools.android.com/tech-docs/new-build-system/build-workflow
Upvotes: 3