Bazel: Depend on last released plugin API version Normally, when developing on master branch, plugins depend on plugin API snapshot version to be always up to date with core gerrit. This approach unnecessary complicates the plugin managements, as it requires to branch stable branches whenever a new release is cut of, even though the plugins may be still compatible with older gerrit version. Replace this approach to build the plugin against latest released gerrit API version. We could develop this approach further and create different API versions in bazlets, with release number in their names, so that the plugins can declare what is the oldest version they can depend on, like: gerrit_api_2.14.bzl gerrit_api_2.15.bzl and so on. We don't have this for now, and Bazel is only supported since 2.14, so switch to consuming the API from the last stable plugin API release. Change-Id: I03a023f5362c128f4dccc8261bb344265f31ed95
diff --git a/WORKSPACE b/WORKSPACE index c12d529..7ea896f 100644 --- a/WORKSPACE +++ b/WORKSPACE
@@ -8,19 +8,19 @@ ) # Snapshot Plugin API -load( - "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", - "gerrit_api_maven_local", -) - -# Release Plugin API #load( -# "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", -# "gerrit_api", +# "@com_googlesource_gerrit_bazlets//:gerrit_api_maven_local.bzl", +# "gerrit_api_maven_local", #) +# Release Plugin API +load( + "@com_googlesource_gerrit_bazlets//:gerrit_api.bzl", + "gerrit_api", +) + # Load release Plugin API -#gerrit_api() +gerrit_api() # Load snapshot Plugin API -gerrit_api_maven_local() +#gerrit_api_maven_local()