Use bucklets-provided constant to refer to Plugin API

Since the introduction of the standalone Buck build (see [1]), the
reference to Gerrit Plugin API need to be made using the
constant GERRIT_PLUGIN_API rather the explicit name, which
would cause tree vs. standalone conflicts problems.

[1] https://gerrit-review.googlesource.com/#/c/68224/

Change-Id: Ie1cbf2d8b140b2d3e87d356ef99ba9c23f1856b0
diff --git a/BUCK b/BUCK
index f344183..58d3cfb 100644
--- a/BUCK
+++ b/BUCK
@@ -54,7 +54,7 @@
 java_library(
   name = 'javamelody-datasource-interceptor-lib',
   srcs = INTERCEPTOR,
-  provided_deps = DEPS + ['//gerrit-extension-api:api'],
+  provided_deps = DEPS + GERRIT_PLUGIN_API,
 )
 
 genrule(
diff --git a/gerrit-extension-api/BUCK b/gerrit-extension-api/BUCK
deleted file mode 100644
index a5fd441..0000000
--- a/gerrit-extension-api/BUCK
+++ /dev/null
@@ -1,14 +0,0 @@
-include_defs('//bucklets/maven_jar.bucklet')
-
-VER = '2.11.5'
-REPO = MAVEN_CENTRAL
-
-maven_jar(
-  name = 'api',
-  id = 'com.google.gerrit:gerrit-extension-api:' + VER,
-  sha1 = 'ace9da7464e0c89e412d8b53313e846b4b74b137',
-  license = 'Apache2.0',
-  attach_source = False,
-  repository = REPO,
-)
-