Split off config REST endpoints from giant server lib

Move Collections and RestViews for config into server/restapi/ They
form a new java_library which uses the server package as a client.

Resources stay put so plugins that handlers for existing resources do
not break.

Change-Id: I724cb3efe160d2f62fa1a67823999abad589e246
This commit is contained in:
Han-Wen Nienhuys
2017-11-14 16:16:48 +01:00
parent ce3b0eee14
commit 28f9983d93
53 changed files with 158 additions and 83 deletions

View File

@@ -173,6 +173,7 @@ import com.google.gerrit.server.query.change.ChangeData;
import com.google.gerrit.server.query.change.ChangeQueryBuilder;
import com.google.gerrit.server.query.change.ChangeQueryProcessor;
import com.google.gerrit.server.query.change.ConflictsCacheImpl;
import com.google.gerrit.server.restapi.config.ConfigRestModule;
import com.google.gerrit.server.rules.PrologModule;
import com.google.gerrit.server.rules.RulesCache;
import com.google.gerrit.server.ssh.SshAddressesModule;
@@ -305,7 +306,7 @@ public class GerritGlobalModule extends FactoryModule {
install(new com.google.gerrit.server.access.Module());
install(new com.google.gerrit.server.account.Module());
install(new com.google.gerrit.server.change.Module());
install(new com.google.gerrit.server.config.Module());
install(new ConfigRestModule());
install(new com.google.gerrit.server.group.Module(groupsMigration));
install(new com.google.gerrit.server.project.Module());