21765a1407
This is just going to be a grab bag of things which do TVL-specific things to Gerrit, whether that be exposing new Prolog predicates or, as I intend to do as the first thing, expose Buildkite builds as checks. Change-Id: Iaeab987a1fdbd078b85e274691c986489903bf3a Reviewed-on: https://cl.tvl.fyi/c/depot/+/2872 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
14 lines
454 B
Java
14 lines
454 B
Java
package su.tvl.gerrit;
|
|
|
|
import com.google.gerrit.extensions.registration.DynamicSet;
|
|
import com.google.gerrit.extensions.webui.JavaScriptPlugin;
|
|
import com.google.gerrit.extensions.webui.WebUiPlugin;
|
|
import com.google.inject.servlet.ServletModule;
|
|
|
|
public final class HttpModule extends ServletModule {
|
|
|
|
@Override
|
|
protected void configureServlets() {
|
|
DynamicSet.bind(binder(), WebUiPlugin.class).toInstance(new JavaScriptPlugin("tvl.js"));
|
|
}
|
|
}
|