summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-01-21 08:21:43 +0000
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-01-21 08:21:43 +0000
commit362c08ad3c41733b3d9eb46b88cb5b1173586e0d (patch)
tree8f84f9a207d05cfde56acd939ae4eba7adcc2ad8
parent0ea69d8304b8f2ff9c68973e32b6e33f84c0cde1 (diff)
parent8f2c9a9f03b145083128795adcdef983e6901487 (diff)
downloadplatform_external_doclava-362c08ad3c41733b3d9eb46b88cb5b1173586e0d.tar.gz
platform_external_doclava-362c08ad3c41733b3d9eb46b88cb5b1173586e0d.tar.bz2
platform_external_doclava-362c08ad3c41733b3d9eb46b88cb5b1173586e0d.zip
Snap for 4557233 from 8f2c9a9f03b145083128795adcdef983e6901487 to pi-release
Change-Id: Id56b869d316e0c29e8ed6e6e24491541faceff21
-rw-r--r--build.gradle11
1 files changed, 8 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle
index 3866c13..106d916 100644
--- a/build.gradle
+++ b/build.gradle
@@ -44,13 +44,18 @@ if (System.env.DIST_DIR != null && System.env.OUT_DIR != null) {
}
/*
- * If prebuilts are available, use them. Otherwise, attempt to compile against
- * the full source trees.
+ * If prebuilts are available, use them. Else, if this is unbundled build use jcenter().
+ * Finally, if none of that is true, attempt to compile against the full source trees.
*/
File m2repo = file('../../prebuilts/tools/common/m2/repository')
-if (m2repo.exists()) {
+boolean unbundleBuild = (new File("unbundled-build")).exists()
+
+if (m2repo.exists() || unbundleBuild) {
repositories {
maven { url m2repo.absolutePath }
+ if (unbundleBuild) {
+ jcenter()
+ }
}
dependencies {