Skip to content

Commit

Permalink
Merge pull request #262 from nebula-plugins/AbstractGenerateLockTask-…
Browse files Browse the repository at this point in the history
…fix-unresolved-scenario

AbstractGenerateLockTask: filter unresolved dependencies
  • Loading branch information
rpalcolea authored Nov 27, 2023
2 parents c8eac47 + c3bbaca commit acace4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ abstract class AbstractGenerateLockTask extends AbstractLockTask {
confs.each { configurationResolutionData ->
def resolvedComponent = configurationResolutionData.resolvedComponentResult.get()
def resolvedDirectDependencies = resolvedComponent.dependencies
def filteredResolvedDirectDependencies = resolvedDirectDependencies.findAll { ResolvedDependencyResult resolved ->
def filteredResolvedDirectDependencies = resolvedDirectDependencies.findAll { it instanceof ResolvedDependencyResult}.findAll { ResolvedDependencyResult resolved ->
filter.get().call(resolved.selected.moduleVersion.group, resolved.selected.moduleVersion.name, resolved.selected.moduleVersion.version)
}
filteredResolvedDirectDependencies.each { ResolvedDependencyResult resolved ->
Expand Down

0 comments on commit acace4e

Please sign in to comment.