Skip to content

Commit

Permalink
SnapshotDependenciesChecker fails for multi module project allegro#330
Browse files Browse the repository at this point in the history
  • Loading branch information
Kindrat committed Apr 8, 2020
1 parent 96563f4 commit cb44ee6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import org.gradle.api.artifacts.Dependency
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 cb44ee6

Please sign in to comment.