However it creates a very large file with many scopes that are sometimes hard to track.
Sometimes it can be useful just to print the list of dependencies of a specific scope.
A very small script can do the job, and here are some examples:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Runtime | |
task printRuntimeDependencies << { | |
project.configurations.runtime.each { | |
file -> println(file) | |
} | |
} | |
// Compile | |
task printCompileDependencies << { | |
project.configurations.compile.each { | |
file -> println(file) | |
} | |
} | |
// Compile SubModule | |
task printCompileDependencies << { | |
project(':main').configurations.compile.each { | |
file -> println(file) | |
} | |
} |
No comments:
Post a Comment