Adapt to enhanced UploadValidationListener interface

Iaafc0f844c07d823b8a7ef6377f2ede1c5805a08 added another method to the
UploadValidationListener to enable running validations already when
negotiation phase starts. This will be used by the quota plugin to
implement rate limits for fetch requests.

For standalone Buck build reference Gerrit API 2.13-SNAPSHOT until
2.13.9 has been released since this change depends on the enhanced
UploadValidationListener interface in
Iaafc0f844c07d823b8a7ef6377f2ede1c5805a08

Change-Id: I19e60674e555c19842266d034ea46fee3ded51c0
diff --git a/lib/gerrit/BUCK b/lib/gerrit/BUCK
index 2e795df..0f54d34 100644
--- a/lib/gerrit/BUCK
+++ b/lib/gerrit/BUCK
@@ -1,7 +1,7 @@
 include_defs('//bucklets/maven_jar.bucklet')
 
-VER = '2.13'
-REPO = MAVEN_CENTRAL
+VER = '2.13-SNAPSHOT'
+REPO = MAVEN_LOCAL
 
 maven_jar(
   name = 'acceptance-framework',
diff --git a/src/main/java/com/googlesource/gerrit/plugins/cookbook/DenyUploadExample.java b/src/main/java/com/googlesource/gerrit/plugins/cookbook/DenyUploadExample.java
index a19fab6..5389874 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/cookbook/DenyUploadExample.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/cookbook/DenyUploadExample.java
@@ -41,4 +41,10 @@
           "This error message was sent from cookbook plugin DenyUploadExample.");
     }
   }
+
+  @Override
+  public void onBeginNegotiate(Repository repository, Project project,
+      String remoteHost, UploadPack up, Collection<? extends ObjectId> wants,
+      int cntOffered) throws ValidationException {
+  }
 }