summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Warrington <cmw@google.com>2022-04-25 11:59:09 +0000
committerChris Warrington <cmw@google.com>2022-04-25 12:03:13 +0000
commit943f692e4c7450ec19483a6d742233f6f9c9e08b (patch)
tree30404d28679756eb21b61ea51ee2dba58b350694
parent5f7186d42e7cced9fcb0a8e033615c22d615ba2e (diff)
downloaddata-binding-943f692e4c7450ec19483a6d742233f6f9c9e08b.tar.gz
Compile data binding runtime using Gradle AGP
As this makes the path to compiling the runtime somewhat more monolithic, this might start showing up in the critical path more often. If that becomes a problem, we can investigate compiling the data binding runtime for tests using a fixed version of AGP, and then having a separate test that validates that the produced library is the same as is produced by running the current AGP at head, with the option to temporarily switch back if there are changes. Bug: 143864616 Test: Migrating tests to use our production build Change-Id: Ic5d35a8a2a5f9bd6bd37fb98084dc61534afd432
-rw-r--r--BUILD.bazel10
1 files changed, 8 insertions, 2 deletions
diff --git a/BUILD.bazel b/BUILD.bazel
index 20696870..acebb32b 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -369,9 +369,12 @@ gradle_build(
max_workers = 1, # b/155772061
output_file = "data_binding_runtime_androidx.zip",
output_file_source = "local_repo_zip/dataBindingRuntimeRepo.zip",
+ repo_zips = [
+ "//tools/base/build-system:android_gradle_plugin.zip",
+ ],
repos = [
":external_deps",
- "//tools/base/build-system:gradle_plugin_repo",
+ "//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/third_party/kotlin:kotlin-m2repository",
],
tasks = ["createArchive"],
@@ -402,9 +405,12 @@ gradle_build(
max_workers = 1, # b/155772061
output_file = "data_binding_runtime_support.zip",
output_file_source = "local_repo_zip/dataBindingRuntimeRepo.zip",
+ repo_zips = [
+ "//tools/base/build-system:android_gradle_plugin.zip",
+ ],
repos = [
":external_deps",
- "//tools/base/build-system:gradle_plugin_repo",
+ "//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/third_party/kotlin:kotlin-m2repository",
],
tasks = ["createArchive"],