Skip to content

Add legacy forge repositories plugin#261

Merged
Technici4n merged 3 commits into
neoforged:mainfrom
lukebemish:legacy-repositories-plugin
Jun 12, 2025
Merged

Add legacy forge repositories plugin#261
Technici4n merged 3 commits into
neoforged:mainfrom
lukebemish:legacy-repositories-plugin

Conversation

@lukebemish

Copy link
Copy Markdown
Contributor

Fixes #260 with a dedicated legacy forge repositories plugin that works just as the normal one, applying the normal repositories plugin as well.

@neoforged-pr-publishing

Copy link
Copy Markdown
  • Publish PR to GitHub Packages

Comment thread build.gradle Outdated
public class LegacyRepositoriesPlugin implements Plugin<PluginAware> {
@Override
public void apply(PluginAware target) {
target.getPluginManager().apply(RepositoriesPlugin.class);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Hm, I wonder: Do we have to consider a case where someone applies the new repositories plugin to settings.gradle? Probably doesn't matter, since they couldn't have enabled the fail flag 🤔

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

What do you mean? This should all just work with either repositories plugin applied to settings.

Co-authored-by: shartte <shartte@users.noreply.github.com>
@lukebemish lukebemish requested a review from shartte June 12, 2025 16:56
@Technici4n Technici4n merged commit e3d0235 into neoforged:main Jun 12, 2025
6 checks passed
@neoforged-releases

Copy link
Copy Markdown

🚀 This PR has been released as ModDevGradle version 2.0.93.

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.

RepositoriesMode.FAIL_ON_PROJECT_REPOS does not work with legacyforge plugin

3 participants