use of org.gradle.api.internal.artifacts.type.ArtifactTypeRegistry in project gradle by gradle.
the class DependencyResolvingClasspath method resolve.
private ResolveResult resolve() {
ResolveResult result = new ResolveResult();
dependencyResolver.resolve(resolveContext, remoteRepositories, globalRules, Specs.<DependencyMetadata>satisfyAll(), result, result, attributesSchema, new ArtifactTypeRegistry() {
@Override
public ImmutableAttributes mapAttributesFor(File file) {
return ImmutableAttributes.EMPTY;
}
@Override
public ImmutableAttributes mapAttributesFor(VariantResolveMetadata variant) {
return variant.getAttributes().asImmutable();
}
@Override
public ArtifactTypeContainer create() {
throw new UnsupportedOperationException();
}
});
return result;
}
Aggregations