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: I0fc8615affe86afcf06cb3e4d0dda4aaa08d3c9c
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/redmine/RedmineModule.java b/src/main/java/com/googlesource/gerrit/plugins/its/redmine/RedmineModule.java
index 930c2f0..fd9bdf2 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/its/redmine/RedmineModule.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/redmine/RedmineModule.java
@@ -21,6 +21,8 @@
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 +50,7 @@
if (gerritConfig.getString(pluginName, null, "url") != null) {
log.info("Redmine is configured as ITS");
bind(ItsFacade.class).toInstance(new RedmineItsFacade(pluginName, gerritConfig));
+ bind(ItsFacadeFactory.class).to(SingleItsServer.class);
install(new ItsHookModule(pluginName, pluginCfgFactory));
}