if (projectPathValue == null) {
return null;
}
Project project = gradle.getRootProject().project(projectPathValue);
Module projectModule = ((ProjectInternal) project).getModule();
ModuleDescriptor projectDescriptor = moduleDescriptorConverter.convert(project.getConfigurations().getAll(),
projectModule, IvyContext.getContext().getIvy().getSettings());
for (DependencyArtifactDescriptor artifactDescriptor : descriptor.getAllDependencyArtifacts()) {
for (Artifact artifact : projectDescriptor.getAllArtifacts()) {
if (artifact.getName().equals(artifactDescriptor.getName()) && artifact.getExt().equals(
artifactDescriptor.getExt())) {
String path = artifact.getExtraAttribute(DefaultIvyDependencyPublisher.FILE_PATH_EXTRA_ATTRIBUTE);
ReflectionUtil.invoke(artifactDescriptor, "setExtraAttribute",
new Object[]{DefaultIvyDependencyPublisher.FILE_PATH_EXTRA_ATTRIBUTE, path});