ivyPublish.setProject(subModule);
ivyPublish.setOwningTarget(getOwningTarget());
ivyPublish.setLocation(getLocation());
ivyPublish.setOverwrite(overwrite);
ivyPublish.setTaskName("publish-buildscoped-repository");
ivyPublish.execute();
} else {
subModule.log("Skipping publish because " + artifactsDir.getPath() + " is not a directory",
Project.MSG_VERBOSE);
}
}