From a5876cda41f36dc7e3610267e4f1df3b8d84b216 Mon Sep 17 00:00:00 2001 From: jingwen Date: Mon, 16 Apr 2018 09:05:05 -0700 Subject: Update gmaven_rules release tag in documentation and remove dependency on Maven RELNOTES: None. PiperOrigin-RevId: 193048262 --- site/docs/android-instrumentation-test.md | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'site/docs/android-instrumentation-test.md') diff --git a/site/docs/android-instrumentation-test.md b/site/docs/android-instrumentation-test.md index 55d863562b..1d88ad4779 100644 --- a/site/docs/android-instrumentation-test.md +++ b/site/docs/android-instrumentation-test.md @@ -102,16 +102,6 @@ $ which Xvfb /usr/bin/Xvfb ``` -- **Maven**. Bazel uses `maven` to download JARs and AARs from Maven - repositories such as [Google Maven](https://maven.google.com). Install it by - running `apt-get install maven`. Run `which mvn` and ensure that it's - installed at `/usr/bin/mvn`: - -``` -$ which mvn -/usr/bin/mvn -``` - # Getting started Here is a typical target dependency graph of an `android_instrumentation_test`: @@ -215,11 +205,11 @@ load("@android_test_support//:repo.bzl", "android_test_repositories") android_test_repositories() # Google Maven Repository -GMAVEN_COMMIT = "$COMMIT_HASH" +GMAVEN_TAG = "0.1.0" http_archive( name = "gmaven_rules", - strip_prefix = "gmaven_rules-%s" % GMAVEN_COMMIT, - urls = ["https://github.com/bazelbuild/gmaven_rules/archive/%s.tar.gz" % GMAVEN_COMMIT], + strip_prefix = "gmaven_rules-%s" % GMAVEN_TAG, + urls = ["https://github.com/bazelbuild/gmaven_rules/archive/%s.tar.gz" % GMAVEN_TAG], ) load("@gmaven_rules//:gmaven.bzl", "gmaven_rules") gmaven_rules() @@ -267,7 +257,7 @@ android_library( for managing Maven dependencies using [a `YAML` file](https://github.com/johnynek/bazel-deps/blob/master/dependencies.yaml). -For dependencies hosted on on [Google's Maven +For dependencies hosted on [Google's Maven repository](https://maven.google.com), [`@gmaven_rules`](https://github.com/bazelbuild/gmaven_rules) provides a simple way to fetch dependencies hosted with `gmaven_artifact`. -- cgit v1.2.3