Merge branch 'stable-3.0' into stable-3.1
* stable-3.0:
Upgrade bazlets to latest stable-2.16 to build with 2.16.18 API
Bump Bazel version to 3.1.0
Bump Bazel version to 3.0.0
Change-Id: I5eb247dba1e621a9930affaa3e3f166b5b0fe803
diff --git a/WORKSPACE b/WORKSPACE
index 27934fa..448cf81 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -3,7 +3,7 @@
load("//:bazlets.bzl", "load_bazlets")
load_bazlets(
- commit = "97eef86854b0fb68b9287831f3075b6f6218ff41",
+ commit = "cd715d269734e7bb0aa2fc4a01d2d2e279631cc7",
#local_path = "/home/<user>/projects/bazlets",
)
diff --git a/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java b/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
index c0181a5..85cb1b1 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/messageoftheday/GetMessage.java
@@ -19,6 +19,7 @@
import com.google.common.base.Strings;
import com.google.gerrit.extensions.annotations.PluginData;
import com.google.gerrit.extensions.annotations.PluginName;
+import com.google.gerrit.extensions.restapi.Response;
import com.google.gerrit.extensions.restapi.RestReadView;
import com.google.gerrit.server.config.ConfigResource;
import com.google.gerrit.server.config.SitePaths;
@@ -61,7 +62,7 @@
}
@Override
- public MessageOfTheDayInfo apply(ConfigResource rsrc) {
+ public Response<MessageOfTheDayInfo> apply(ConfigResource rsrc) {
MessageOfTheDayInfo motd = new MessageOfTheDayInfo();
cfg = new FileBasedConfig(cfgFile, FS.DETECTED);
try {
@@ -105,7 +106,7 @@
motd.redisplay = getRedisplay();
- return motd;
+ return Response.ok(motd);
}
private Date getRedisplay() {