Repository navigation
java: move the Android SDK aspect to android/private/quality (closes #14418) - #14429
Merged
Merged
Conversation
TrapsterDK
force-pushed
the
issue-14418-android-sdk-aspect
branch
from
November 21, 2026 09:33
339570d to
d899c57
Compare
…#14402) jvm.bzl and jvm_check.bzl no longer load @rules_scala. scala/lang.json now names scala/private/quality:scala.bzl, which owns scalac, scalafix and scalafmt, the real_scala_{format,lint,typecheck} shards and their probes, and scalac_check_aspect. cold_start_test gains a java case with scala in FOREIGN that also analyzes the dx check aspects. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t
…alysis (part of #14402) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t
…14418) android_sdk_aspect lives in android/private/quality/android_sdk.bzl with the @rules_android load. jvm_check_aspect and real_jvm_lint read JvmAndroidSdkInfo from java/private/quality/jvm_info.bzl through required_aspect_providers, so the JVM quality files no longer load @rules_android. android/lang.json gets a quality entry selected by the accepted android-sdk-license (license:<id> marks from dx_adopt::quality_marks), and select_aspects keeps helper aspects that are not real_ shards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t
…ow (closes #14418) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t
TrapsterDK
force-pushed
the
issue-14418-android-sdk-aspect
branch
from
November 21, 2026 09:33
d899c57 to
a64ce8d
Compare
This was referenced Nov 21, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #14418
Stacked on #14412 (
issue-14402-scala-quality); rebase onto main if that squash-merges first.Changes
android/private/quality/android_sdk.bzl:android_sdk_aspect(fromjvm_check.bzl),attr_aspects = ["upstream"],provides = [JvmAndroidSdkInfo], empty jars for non-Android kinds. Only file that loads@rules_androidfor quality.java/private/quality/jvm_info.bzl: load-freeJvmAndroidSdkInfoandandroid_sdk_jars.jvm_check_aspectandreal_jvm_lintuserequired_aspect_providers = [[JvmAndroidSdkInfo]]instead ofrequires.android/lang.jsonquality entry (licenses: ["android-sdk-license"], lint/typecheckandroid_sdk_aspect); schema anddx_families::QualityFilesgetlicenses;wanted()matcheslicense:<id>.dx_adopt::quality_marks(root)= file extensions +license:<id>per accepted id; used byexec_qualityandcold_start_test.select_aspectskeeps non-real_helper aspects;lang_projectionsgives helpers no shard or conformance subject.android_sdk_aspectbeforereal_jvm_lint.android_sdk_classpath_tests(javac/kotlinc getandroid.jaronly with the SDK aspect first), plan ordering test, license-mark tests.Tests
bazel test --build_tests_only --test_tag_filters=-consumer,-nested //cli/families/... //cli/plan/... //cli/adopt/... //cli/exec_quality/... //core/modules/... //android/tests/... //core/quality/testdata/... //java/tests/... //core/quality:jvm_classpath_policy_test: 919 pass, 4 fail in files this PR does not touch (//core/modules:consumer_deps_testlock/bazel_dep drift on the base branch;matrix_text_typos_fail,matrix_rust_typos_fail,matrix_sql_lint_parse_errorgolden mismatches from typos/sqlfluff output).Not run locally: nested-Bazel and
*_consumer_testtargets (incl.cold_start_test); CI runs them.Remaining by design:
rules_android+stays inUPSTREAM_REGISTEREDandjava.txtuntil #14357.🤖 Generated with Claude Code
https://claude.ai/code/session_01Xut2hzWDHEg9zNhhTJrJ7t