Skip to content

Commit

Permalink
SnapshotDependenciesChecker fails for multi module project #330 (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kindrat committed Nov 28, 2022
1 parent 0b2235f commit bdc67d9
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -7,7 +7,7 @@ import org.gradle.api.artifacts.DependencyConstraint
class SnapshotDependenciesChecker {

Collection<String> snapshotVersions(Project project) {
Collection<String> projectVersions = project.allprojects.collect {toFullVersion(it)}
Collection<String> projectVersions = project.rootProject.allprojects.collect {toFullVersion(it)}
Collection<String> allDependenciesVersions = project.allprojects.collect {
it.configurations.collect { config ->
config.allDependencies.findAll {isSnapshot(it)}.collect {toFullVersion(it)}+
Expand Down

0 comments on commit bdc67d9

Please sign in to comment.