Skip to content

Override a Maven repository using mavenCentralMirror - #1323

Merged
ikhoon merged 1 commit into
line:mainfrom
ikhoon:custom-maven-central
Jul 1, 2026
Merged

Override a Maven repository using mavenCentralMirror#1323
ikhoon merged 1 commit into
line:mainfrom
ikhoon:custom-maven-central

Conversation

@ikhoon

@ikhoon ikhoon commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Motivation:

mavenCentralMirror was introduced in gradle-scripts to override the Maven repository, but Central Dogma does not apply this change to its own build.gradle files.

Modifications:

  • Respect mavenCentralMirror to override mavenCentral() in build.gradle

Result:

We can use mavenCentralMirror to change the Maven repository URL when building Central Dogma.

Motivation:

`mavenCentralMirror` was introduced in gradle-scripts to override the
Maven repository, but Central Dogma does not apply this change to its
own build.gradle files.

Modifications:

- Respect `mavenCentralMirror` to override `mavenCentral()` in
  build.gradle

Result:

We can use `mavenCentralMirror` to change the Maven repository URL when
building Central Dogma.
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5558bd47-445f-4faf-870d-ab15d6f075d6

📥 Commits

Reviewing files that changed from the base of the PR and between 6816166 and 278a25f.

⛔ Files ignored due to path filters (1)
  • dist/build.gradle is excluded by !**/dist/**
📒 Files selected for processing (1)
  • build.gradle

📝 Walkthrough

Walkthrough

The build.gradle repository configuration now checks for an optional mavenCentralMirror Gradle property. If set, it configures a maven repository using that URL; otherwise, it falls back to the standard mavenCentral() repository.

Changes

Maven repository configuration

Layer / File(s) Summary
Conditional Maven Central mirror
build.gradle
Repository setup reads an optional mavenCentralMirror property, using it as a maven repository URL when present, else falling back to mavenCentral().

Estimated code review effort: 1 (Trivial) | ~3 minutes

Suggested labels: build, dependencies

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: making build.gradle respect mavenCentralMirror.
Description check ✅ Passed The description accurately describes the motivation, change, and result of overriding mavenCentral() with mavenCentralMirror.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ikhoon
ikhoon merged commit 0c40353 into line:main Jul 1, 2026
13 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants