Open ruhrohraggy opened 5 years ago
Works for me
task printDeps {
doLast {
project.rootProject.buildscript.configurations.each { config ->
config.dependencies.each { dep ->
logger.warn("Dep: " + dep.name)
}
}
}
}
As buildScript dependencies are added to the root project usually did you also executed the buildEnvironment task on root? It should show all dependencies. If it's not showing them there something very wrong. Do you have a settings.gradle in your root project?
Even in my own tasks, I'm not able to get this to print any buildscript dependencies. The checkSnapshotDependencies task isn't picking up snapshot dependencies in my buildscripts. Even Gradle's buildEnvironment task doesn't show me any buildscript dependencies. Is this something caused by the latest release?