Skip to content

Conversation

@lukebemish
Copy link
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

  • Publish PR to GitHub Packages

public class LegacyRepositoriesPlugin implements Plugin<PluginAware> {
@Override
public void apply(PluginAware target) {
target.getPluginManager().apply(RepositoriesPlugin.class);
Copy link
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
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

🚀 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