Make Gradle repository resolution compatible with TrueOG Bootstrap by importing local repositories as file-based maven entries instead of relying solely on mavenLocal().
Support an override via the SELF_MAVEN_LOCAL_REPO system property with proper ~ expansion and validation.
Description
Added an explicit maven { url = uri("file://${System.getProperty("user.home")}/.m2/repository") } entry to prefer the user's ~/.m2/repository as a file-based repository.
Replaced the previous mavenLocal()-only lookup with System.getProperty("SELF_MAVEN_LOCAL_REPO") handling that expands leading ~, converts the path to a file(...), and registers it via maven { url = uri("file://${dir.absolutePath}") } when the directory exists.
When the SELF_MAVEN_LOCAL_REPO path is missing or not a directory the code logs an error and falls back to mavenLocal() to preserve previous behavior.
Modified file: settings.gradle.kts.
Testing
Ran ./gradlew help, which failed in this environment with Gradle reporting: What went wrong: 25.0.1 (build did not complete successfully).
No other automated tests were executed in this environment.
### Motivation
- Make Gradle repository resolution compatible with TrueOG Bootstrap by importing local repositories as file-based `maven` entries instead of relying solely on `mavenLocal()`.
- Support an override via the `SELF_MAVEN_LOCAL_REPO` system property with proper `~` expansion and validation.
### Description
- Added an explicit `maven { url = uri("file://${System.getProperty("user.home")}/.m2/repository") }` entry to prefer the user's `~/.m2/repository` as a file-based repository.
- Replaced the previous `mavenLocal()`-only lookup with `System.getProperty("SELF_MAVEN_LOCAL_REPO")` handling that expands leading `~`, converts the path to a `file(...)`, and registers it via `maven { url = uri("file://${dir.absolutePath}") }` when the directory exists.
- When the `SELF_MAVEN_LOCAL_REPO` path is missing or not a directory the code logs an error and falls back to `mavenLocal()` to preserve previous behavior.
- Modified file: `settings.gradle.kts`.
### Testing
- Ran `./gradlew help`, which failed in this environment with Gradle reporting: `What went wrong: 25.0.1` (build did not complete successfully).
- No other automated tests were executed in this environment.
------
[Codex Task](https://chatgpt.com/codex/tasks/task_e_69ba86e07850832fad03efed1ddd4acd)
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Motivation
mavenentries instead of relying solely onmavenLocal().SELF_MAVEN_LOCAL_REPOsystem property with proper~expansion and validation.Description
maven { url = uri("file://${System.getProperty("user.home")}/.m2/repository") }entry to prefer the user's~/.m2/repositoryas a file-based repository.mavenLocal()-only lookup withSystem.getProperty("SELF_MAVEN_LOCAL_REPO")handling that expands leading~, converts the path to afile(...), and registers it viamaven { url = uri("file://${dir.absolutePath}") }when the directory exists.SELF_MAVEN_LOCAL_REPOpath is missing or not a directory the code logs an error and falls back tomavenLocal()to preserve previous behavior.settings.gradle.kts.Testing
./gradlew help, which failed in this environment with Gradle reporting:What went wrong: 25.0.1(build did not complete successfully).Codex Task