gradle-release icon indicating copy to clipboard operation
gradle-release copied to clipboard

No SNAPSHOT buildscript caught

Open ruhrohraggy opened this issue 6 years ago • 1 comments

project.rootProject.buildscript.configurations.each { config ->
    config.dependencies.each { dep ->
        logger.warn("Dep: " + dep.name)
    }
}

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?

ruhrohraggy avatar Dec 04 '18 16:12 ruhrohraggy

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?

Hillkorn avatar Dec 11 '18 08:12 Hillkorn