researchgate / gradle-release

gradle-release is a plugin for providing a Maven-like release process for projects using Gradle
MIT License
870 stars 221 forks source link

No SNAPSHOT buildscript caught #275

Open ruhrohraggy opened 5 years ago

ruhrohraggy commented 5 years ago
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?

Hillkorn commented 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?