Comments. Run Gradle with all task actions disabled. Things have moved forward in Gradle so I believe this question merits another answer.

However, I was looking for something that gives more of a tree view, so that I can easily detect what causes a specific task to run, for instance if I want to check why the task myCustomTask runs when I run gradle build.This can involve a series of transitive dependencies, thus a tree view would be clearer. gradle dependencies allows to display dependencies in your project printed as pretty ascii tree.

Learn more about this in dependency locking.--update-locks [,]* I … Copy link Quote reply Member eriwen commented Apr 4, 2018. Example. gradle dependencies The results are dependency graphs (taking into account transitive dependencies), broken down by configuration.

Each project is made up of different tasks. Gradle build script describes about one or more Projects. A task is a piece of work which a build performs.

Following the answer by cstroe, the following also prints the input and output files of each Gradle task.

I guess the question simply is: How to ensure that for a task that depends on the dependencies (doh), the dependencies are really retrieved first. I was not able to find satisfactory solution on the web, so after worked out my own that blog post arose. Indicates that all resolved configurations that are lockable should have their lock state persisted.

This dependency report is very large, not much value to … 1. gradle dependencies.

This is useful since dependencies are sometimes defined by input/output relations. a:feature from:member in:core.

java2novice$ gradle tasks :tasks ----- All tasks runnable from root project ----- Default tasks: clean, run Build Setup tasks ----- init - Initializes a new Gradle build.

In my case, I need to implement some post-processing on retrieved artifacts (unzipping ZIPped artifacts to the working tree), but a simple dependsOn: configurations.compile for my unzipDepenencies task does not seem to do the trick.

Gradle user guide – listing dependencies @Francois_Guillot gradle tasks --all does work. gradle documentation: List Dependencies. [incubating] wrapper - Generates Gradle wrapper files. 3 comments Labels. If all of the task dependencies are up to date, skipped or from cache, the lifecycle task will be considered UP-TO-DATE. Display project dependencies (direct and transitive for all configurations) in a tree format. [incubating] Help tasks ----- components - Displays the components produced by root project 'gradle_tests'.

Calling the dependencies task allows you to see the dependencies of the root project:. Example.

Since Gradle 4.3, "build scans" were introduced.All relevant info is available in the Gradle docs (1, 2).For me, this seems to now be the easiest way to check your dependencies (and generally your build) in a clear, organized way.