public void resolveModuleArtifacts( ComponentResolveMetaData component, ComponentUsage usage, BuildableArtifactSetResolveResult result) { if (isProjectModule(component.getComponentId())) { String configurationName = usage.getConfigurationName(); Set<ComponentArtifactMetaData> artifacts = component.getConfiguration(configurationName).getArtifacts(); result.resolved(artifacts); } }
public void resolveModuleArtifacts( ComponentResolveMetaData component, ArtifactType artifactType, BuildableArtifactSetResolveResult result) { if (isProjectModule(component.getComponentId())) { throw new UnsupportedOperationException( "Resolving artifacts by type is not yet supported for project modules"); } }