Adapt plugin to latest its-base
Given latest its-base introduces ItsFacadeFactory as a way of tunneling
project information between its-base and its derivative plugins, this
factory needs to be bound to the SingeItsServer implementation in order
to keep backward compatibility.
Change-Id: Ieb43153661ad6c537307c77ac91da2f583f790fd
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaModule.java b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaModule.java
index fdf16a7..57e0721 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaModule.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/bugzilla/BugzillaModule.java
@@ -21,6 +21,9 @@
import com.google.inject.Inject;
import com.googlesource.gerrit.plugins.its.base.ItsHookModule;
import com.googlesource.gerrit.plugins.its.base.its.ItsFacade;
+import com.googlesource.gerrit.plugins.its.base.its.ItsFacadeFactory;
+import com.googlesource.gerrit.plugins.its.base.its.SingleItsServer;
+
import org.eclipse.jgit.lib.Config;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -48,6 +51,7 @@
if (gerritConfig.getString(pluginName, null, "url") != null) {
log.info("Bugzilla is configured as ITS");
bind(ItsFacade.class).toInstance(new BugzillaItsFacade(pluginName, gerritConfig));
+ bind(ItsFacadeFactory.class).to(SingleItsServer.class);
install(new ItsHookModule(pluginName, pluginCfgFactory));
}