Skip to content

Commit

Permalink
Ignore constraints of own projects ("DefaultProjectDependencyConstrai…
Browse files Browse the repository at this point in the history
…nt") (#724)
  • Loading branch information
Brummolix authored Feb 8, 2023
1 parent 7b8c8e0 commit ad0ce46
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import org.gradle.api.artifacts.result.ResolvedArtifactResult
import org.gradle.api.attributes.Attribute
import org.gradle.api.attributes.HasConfigurableAttributes
import org.gradle.api.internal.artifacts.DefaultModuleVersionIdentifier
import org.gradle.api.internal.artifacts.dependencies.DefaultProjectDependencyConstraint
import org.gradle.api.specs.Specs.SATISFIES_ALL
import org.gradle.internal.component.external.model.DefaultModuleComponentIdentifier
import org.gradle.maven.MavenModule
Expand Down Expand Up @@ -101,7 +102,9 @@ class Resolver(
// version of transitive dependency.
if (supportsConstraints(configuration)) {
for (dependency in configuration.allDependencyConstraints) {
latest.add(createQueryDependency(dependency))
if (dependency !is DefaultProjectDependencyConstraint) {
latest.add(createQueryDependency(dependency))
}
}
}

Expand Down

0 comments on commit ad0ce46

Please sign in to comment.