ModuleOrderEntry orderEntry = model.addModuleOrderEntry(moduleDependency);
orderEntry.setExported(true);
return;
}
LibraryDependency backup = dependency.getBackupDependency();
boolean hasLibraryBackup = backup != null;
String msg = String.format("Unable to find module with Gradle path '%1$s'.", dependency.getGradlePath());
Message.Type type = Message.Type.ERROR;
if (hasLibraryBackup) {
msg += String.format(" Linking to library '%1$s' instead.", backup.getName());
type = Message.Type.WARNING;
}
LOG.info(msg);