Created
January 5, 2023 13:08
-
-
Save Hackforid/4eca94b892e076761521e1348efdbdd8 to your computer and use it in GitHub Desktop.
获取模块的依赖
This file contains hidden or 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
task runGetDeps() { | |
doLast { | |
project.getConfigurations().each { configuration -> | |
// println("conf $configuration.name") | |
if (configuration.name == "debugCompileClasspath" && configuration.canBeResolved) { | |
println("conf $configuration.name") | |
configuration.incoming.resolutionResult.getAllDependencies().each { dep -> | |
println("dep => $dep") | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment