forked from bazelbuild/bazel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make bazel Android remote deps compatible with bzlmod (bazelbuild#16772)
* Upgrade bazel's bzlmod rules_java version to 5.3.5 Latest rules_java has fixes for Android build integration. PiperOrigin-RevId: 488701777 Change-Id: I144f6feac88feaad5419fcdd9e21e5b8e2003b16 * Adds a bzlmod extension for remote android_tools PiperOrigin-RevId: 488720288 Change-Id: I6e7baa1d87d2d7b5434d8870e726faf362842dac Co-authored-by: Googler <[email protected]>
- Loading branch information
Showing
5 changed files
with
63 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright 2022 The Bazel Authors. All rights reserved. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
"""Module extension to declare Android runtime dependencies for Bazel.""" | ||
|
||
load("//tools/build_defs/repo:http.bzl", "http_archive", "http_jar") | ||
|
||
def _remote_android_tools_extensions_impl(_ctx): | ||
http_archive( | ||
name = "android_tools", | ||
sha256 = "1afa4b7e13c82523c8b69e87f8d598c891ec7e2baa41d9e24e08becd723edb4d", # do_not_remove_this_android_tools_update_marker | ||
url = "https://mirror.bazel.build/bazel_android_tools/android_tools_pkg-0.27.0.tar.gz", | ||
) | ||
http_jar( | ||
name = "android_gmaven_r8", | ||
sha256 = "8626ca32fb47aba7fddd2c897615e2e8ffcdb4d4b213572a2aefb3f838f01972", | ||
url = "https://maven.google.com/com/android/tools/r8/3.3.28/r8-3.3.28.jar", | ||
) | ||
|
||
remote_android_tools_extensions = module_extension( | ||
implementation = _remote_android_tools_extensions_impl, | ||
) |