Merge branch 'stable-3.0' into stable-3.1
* stable-3.0:
Move external dependencies to external_plugin_deps.bzl
Upgrade bazlets to latest stable-3.0 to build with 3.0.10 API
Upgrade bazlets to latest stable-2.16 to build with 2.16.21 API
Upgrade bazlets to latest stable-2.15 to build with 2.15.19 API
Adapt the moved auto-value version to the one used in this branch.
Change-Id: Icd412164371152ff4ec2624bed0d94df8bd8a277
diff --git a/WORKSPACE b/WORKSPACE
index 8438894..36d460b 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -22,21 +22,9 @@
# Load release Plugin API
gerrit_api()
-load("//tools/bzl:maven_jar.bzl", "GERRIT", "maven_jar")
+load("//:external_plugin_deps.bzl", "external_plugin_deps")
-AUTO_VALUE_VERSION = "1.7"
-
-maven_jar(
- name = "auto-value",
- artifact = "com.google.auto.value:auto-value:" + AUTO_VALUE_VERSION,
- sha1 = "fe8387764ed19460eda4f106849c664f51c07121",
-)
-
-maven_jar(
- name = "auto-value-annotations",
- artifact = "com.google.auto.value:auto-value-annotations:" + AUTO_VALUE_VERSION,
- sha1 = "5be124948ebdc7807df68207f35a0f23ce427f29",
-)
+external_plugin_deps()
# Load snapshot Plugin API
#gerrit_api_maven_local()
diff --git a/external_plugin_deps.bzl b/external_plugin_deps.bzl
new file mode 100644
index 0000000..d574618
--- /dev/null
+++ b/external_plugin_deps.bzl
@@ -0,0 +1,16 @@
+load("//tools/bzl:maven_jar.bzl", "maven_jar")
+
+def external_plugin_deps():
+ AUTO_VALUE_VERSION = "1.7"
+
+ maven_jar(
+ name = "auto-value",
+ artifact = "com.google.auto.value:auto-value:" + AUTO_VALUE_VERSION,
+ sha1 = "fe8387764ed19460eda4f106849c664f51c07121",
+ )
+
+ maven_jar(
+ name = "auto-value-annotations",
+ artifact = "com.google.auto.value:auto-value-annotations:" + AUTO_VALUE_VERSION,
+ sha1 = "5be124948ebdc7807df68207f35a0f23ce427f29",
+ )