You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update rules_jvm_external to use the Starlark version of aar_import after the native version was removed from Bazel (#1149)
* Update rules_jvm_external to use the Starlark version of aar_import automatically
if the version of Bazel used does not contain the native version of aar_import.
This also updates the version of rules_android to the latest commit, because
version 0.1.1 is basically just wrappers around the native versions of the rules.
This also disbles `--experimental_sibling_repository_layout` added in
b6631f9
because the latest rules_android uses protos in go, and there is a problem compiling protos in go
with `--experimental_sibling_repository_layout`: bazel-contrib/rules_go#3947Fixes#1139.
* Restore .bazelrc
* Don't overwrite bazelrc
* Update rules_android commit to inclue bazelbuild/rules_android@d25741d
* Update comments
* Update to latest rules_android commit
* Load the rules_android rules before rules_kotlin to avoid the version of rules_android that rules_kotlin uses
* Update .bazelversion from 7.1.0 to 7.2.1
* Add dependencies for "aar_import_that_consumes_the_downloaded_file_directly" because Starlark aar_import checks that there are no missing class imports in aars
* Workarounds for aar_import ImportDepsChecker checks
* Remove unnecessary com.google.ar.sceneform:assets:1.10.0 dep and revert regression_testing_coursier_install.json
* Use the native Android rules in WORKSPACE via rules_android 0.1.1 for use with bazel 5 and bazel 6 in CI
* Update to latest rules_android
* Update to latest rules_android
* Update to rules_android 0.5.1, address review comments
Copy file name to clipboardExpand all lines: private/rules/maven_install.bzl
+9-3
Original file line number
Diff line number
Diff line change
@@ -68,12 +68,13 @@ def maven_install(
68
68
use_credentials_from_home_netrc_file: Whether to pass machine login credentials from the ~/.netrc file to coursier.
69
69
fail_if_repin_required: Whether to fail the build if the required maven artifacts have been changed but not repinned. Requires the `maven_install_json` to have been set.
70
70
use_starlark_android_rules: Whether to use the native or Starlark version
71
-
of the Android rules. Default is False.
71
+
of the Android rules. Default is False if the running version of Bazel supports native aar_import.
72
+
If the running version of Bazel does not support native aar_import, this parameter is ignored and the
73
+
Starlark Android rules is used.
72
74
aar_import_bzl_label: The label (as a string) to use to import aar_import
73
75
from. This is usually needed only if the top-level workspace file does
74
76
not use the typical default repository name to import the Android
75
-
Starlark rules. Default is
76
-
"@build_bazel_rules_android//rules:rules.bzl".
77
+
Starlark rules. Default is "@rules_android//rules:rules.bzl".
77
78
duplicate_version_warning: What to do if an artifact is specified multiple times. If "error" then
78
79
fail the build, if "warn" then print a message and continue, if "none" then do nothing. The default
0 commit comments