aboutsummaryrefslogtreecommitdiffhomepage
path: root/site/docs/android-instrumentation-test.md
diff options
context:
space:
mode:
authorGravatar jingwen <jingwen@google.com>2018-04-16 09:05:05 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-04-16 09:07:33 -0700
commita5876cda41f36dc7e3610267e4f1df3b8d84b216 (patch)
treed13400277da1c7e6b2b66153bf29ace7d860be90 /site/docs/android-instrumentation-test.md
parenta78f55dc378e0d175e695dd081f5a7d08055bdb7 (diff)
Update gmaven_rules release tag in documentation and remove dependency on Maven
RELNOTES: None. PiperOrigin-RevId: 193048262
Diffstat (limited to 'site/docs/android-instrumentation-test.md')
-rw-r--r--site/docs/android-instrumentation-test.md18
1 files changed, 4 insertions, 14 deletions
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`.