final Upload upload = (Upload) project.createTask(GUtil.map("type", Upload.class), name);
PublishInstruction publishInstruction = new PublishInstruction();
publishInstruction.setIvyFileParentDir(project.getBuildDir());
upload.setConfiguration(configuration);
upload.setPublishInstruction(publishInstruction);
<BUG>upload.dependsOn(configuration.getBuildArtifacts());
return upload;</BUG>
}
private void configureLibs(Project project, final JavaPluginConvention javaConvention) {
Bundle libsBundle = (Bundle) project.createTask(GUtil.map("type", Bundle.class, "dependsOn", TEST), LIBS);

final Upload upload = (Upload) project.createTask(GUtil.map("type", Upload.class), name);
PublishInstruction publishInstruction = new PublishInstruction();
publishInstruction.setIvyFileParentDir(project.getBuildDir());
upload.setConfiguration(configuration);
upload.setPublishInstruction(publishInstruction);
upload.dependsOn(configuration.getBuildArtifacts());
upload.setDescription(String.format("Uploads all artifacts belonging to the %s configuration", configuration.getName()));
return upload;
}
private void configureLibs(Project project, final JavaPluginConvention javaConvention) {
Bundle libsBundle = (Bundle) project.createTask(GUtil.map("type", Bundle.class, "dependsOn", TEST), LIBS);
