Repository navigation
ADFA-7220: Store Maven repo files under the .module url name - #2286
Merged
Merged
Conversation
Spotless's ratchet reformats composite-builds/build-logic/common/build.gradle.kts in full (2-space indent to tabs) once ADFA-7220 touches it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
cacheToLocalMavenRepo copied each file from a Gradle module cache under its cache file name. Gradle's cache keeps a file under the "name" its .module metadata gives it, but a build asks the repository for the "url". For androidx.lifecycle:lifecycle-viewmodel-android:2.9.4 they differ (lifecycle-viewmodel-release.aar against lifecycle-viewmodel-android-2.9.4.aar), so a repository this task made failed offline builds with "Could not find". renameFilesToModuleUrls() in build-logic/common, a port of dev-assets' rename_files_to_module_urls (dev-assets #81), runs after the copy: it stores each variant file under its url when that differs and has no slash, and removes the name copy unless another variant serves that name. ModuleUrlNamesTest ports dev-assets' seven cases: 7 of 7 pass, and with the function stubbed out the three rename cases fail. Run end to end on a cache holding lifecycle-viewmodel-android 2.9.4, cacheToLocalMavenRepo now writes lifecycle-viewmodel-android-2.9.4.aar and no lifecycle-viewmodel-release.aar. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Contributor
…the conversion renameFilesToModuleUrls() throws IllegalStateException naming the file when a .module can't be parsed, as dev-assets' script exits; that path had no test. 8 of 8 pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
Daniel-ADFA
approved these changes
Nov 21, 2026
davidschachterADFA
added a commit
that referenced
this pull request
Nov 22, 2026
…a49afd (ADFA-7220, ADFA-7200) Stage moved by two commits: ADFA-7220 (#2286, Maven repo files stored under the .module url name, in build-logic) and ADFA-7200 (#2285, sqlite-js 1.4.4). No conflicts; this branch's own diff against stage is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
davidschachterADFA
added a commit
that referenced
this pull request
Nov 22, 2026
…137: #2259's review fixes and stage at 5a49afd Brings in #2259's merge of stage (2d7c135: ADFA-7220 #2286, ADFA-7200 #2285) and #2259's five review fixes: the 1.5 s cap on server statements on a database not in WAL mode (df22b7a), draining unread request input before closing after an error reply (3a3d57a), the Kotlin unit tests in CI (f683484), closing-only paths reported as not available (4ee1506) and the sqlite_ name escape in get_stats (a522456). No conflicts; subprojects/sqlite-debugger/README.md auto-merged (#2259 edits its Testing and lock paragraphs, this PR its "Not done yet" list). Semantic checks: neither stage's two commits nor #2259's fixes touch a Room database, entity or migration, so this PR's RecentProjectRoomDatabase version 6 with migration5To6 stays the next version. This PR's own diff is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
davidschachterADFA
added a commit
that referenced
this pull request
Nov 22, 2026
…139: #2259's review fixes and stage at 5a49afd Brings in #2260's merge-up (8b7c558) of #2259's stage merge (2d7c135: ADFA-7220 #2286, ADFA-7200 #2285) and #2259's five review fixes (a522456, 4ee1506, 3a3d57a, df22b7a, f683484). No conflicts; subprojects/sqlite-debugger/README.md auto-merged. This PR's own diff is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
davidschachterADFA
added a commit
that referenced
this pull request
Nov 22, 2026
…138: #2259's review fixes and stage at 5a49afd Brings in #2259's merge of stage (2d7c135: ADFA-7220 #2286, ADFA-7200 #2285) and #2259's five review fixes (a522456, 4ee1506, 3a3d57a, df22b7a, f683484). No conflicts: .github/workflows/debug.yml auto-merged, with #2259's sqlite-debugger unit-test step after the :plugin-api tests and this PR's release-APK check after it; subprojects/sqlite-debugger/README.md auto-merged. This PR's own diff is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vh2DAYT7GPoC2cDzo8LErn
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.
ADFA-7220
On
stage,cacheToLocalMavenRepocopies each file from a Gradle module cache under its cache file name. But Gradle's cache keeps a file under thenameits.modulemetadata gives it, while a build asks the repository for theurl. Forandroidx.lifecycle:lifecycle-viewmodel-android:2.9.4they differ:lifecycle-viewmodel-release.aaragainstlifecycle-viewmodel-android-2.9.4.aar. A repository this task makes therefore fails offline builds with "Could not find". The ADFA-7082 offline test hit exactly this in dev-assets' copy of the logic, which dev-assets #81 fixed.Change
style: spotless reformat, no functional change, is Spotless's ratchet reindentingbuild-logic/common/build.gradle.kts(2 spaces to tabs) once the file is touched. Itsgit diff -wis empty, so review can skip it.renameFilesToModuleUrls()incomposite-builds/build-logic/common(com.itsaky.androidide.build.maven), a port of dev-assets' reviewedrename_files_to_module_urls.convertCacheToLocalMavenRepocalls it after the copy.urlwhen that differs from itsnameand has no slash.namecopy unless another variant serves the file under that name.urlfile, or a.moduleof an unexpected shape is left alone.JsonSlurper, whichgradleApi()already provides, so there's no new dependency.build-logic/commongains JUnit 4 and Truth test dependencies, asbuild-logic/desugaringhas.Tests
ModuleUrlNamesTestports the seven cases of dev-assets'scripts/tests/test-cache-to-local-maven-repo.py. At a0b1b77,./gradlew :build-logic:common:testruns 8 of 8 passing (seven ported cases, plus one that a.modulethat is not JSON stops the conversion with an error naming the file).return emptyList()), the three rename cases fail: "a file takes its module url name", "a name another variant serves is kept", and "one name serves two urls". The four "leave it alone" cases pass either way../gradlew cacheToLocalMavenRepoon a module cache holdinglifecycle-viewmodel-android2.9.4 as Gradle stores it (the.module,.pomandlifecycle-viewmodel-release.aarin separate hash directories). The repository it writes haslifecycle-viewmodel-android-2.9.4.aarand nolifecycle-viewmodel-release.aar(acceptance criterion 1).Notes
.github/workflowsruns:build-logic:common:test, so the results above are local.🤖 Generated with Claude Code
https://claude.ai/code/session_01Vh2DAXGyHbMzjSsi2zbrkw
Code Reviewer: Code Reviewer couldn't review this pull request
The pull request author does not have access to AI for the associated Atlassian organization.