Skip to content

Add the NeoForgedRepositoryFilter to address the issues associated with NeoForge Maven using the Maven Central repository#329

Open
Gu-ZT wants to merge 1 commit intoneoforged:mainfrom
Gu-ZT:feature/fix/327
Open

Add the NeoForgedRepositoryFilter to address the issues associated with NeoForge Maven using the Maven Central repository#329
Gu-ZT wants to merge 1 commit intoneoforged:mainfrom
Gu-ZT:feature/fix/327

Conversation

@Gu-ZT
Copy link

@Gu-ZT Gu-ZT commented Mar 19, 2026

Copilot AI review requested due to automatic review settings March 19, 2026 19:47
@neoforged-pr-publishing
Copy link

  • Publish PR to GitHub Packages

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a repository content filter for the NeoForged Releases Maven repo to prevent it from behaving like a partial Maven Central mirror and blocking fallback resolution of missing artifacts (e.g., *-interfaceinjection.json), addressing issue #327.

Changes:

  • Apply a content allowlist (NeoForgedRepositoryFilter) to the https://maven.neoforged.net/releases/ repository.
  • Introduce a generated allowlist class enumerating the allowed modules for the NeoForged Releases repository.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
src/main/java/net/neoforged/moddevgradle/internal/RepositoriesPlugin.java Applies the new NeoForged repository content filter to the NeoForged Releases repo.
src/generated/java/net/neoforged/moddevgradle/internal/generated/NeoForgedRepositoryFilter.java New allowlist used to constrain which coordinates may resolve from the NeoForged Releases repo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Gu-ZT Gu-ZT closed this Mar 19, 2026
@Gu-ZT Gu-ZT reopened this Mar 19, 2026
@Gu-ZT Gu-ZT force-pushed the feature/fix/327 branch from 6cc2e24 to 40b2243 Compare March 19, 2026 20:12
…th NeoForge Maven using the Maven Central repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Neoforged Maven Central Mirror Missing interfaceinjection.json Artifacts

2 participants