Skip to content

[7.0] Display a warning if Renamer is not present using legacy Forge versions#1071

Open
Jonathing wants to merge 2 commits intoMinecraftForge:FG_7.0from
Jonathing:feat/jonathing/7.0/renamer-missing-warning
Open

[7.0] Display a warning if Renamer is not present using legacy Forge versions#1071
Jonathing wants to merge 2 commits intoMinecraftForge:FG_7.0from
Jonathing:feat/jonathing/7.0/renamer-missing-warning

Conversation

@Jonathing
Copy link
Copy Markdown
Member

Name entails. Specifically, display warning if snapshot version (detected by looking for w) is less than 24w13(a) or main version is less than 1.20.5 (ghost .0 is added to versions such as 1.20).

@Jonathing Jonathing requested a review from LexManos April 6, 2026 21:52
@Jonathing Jonathing self-assigned this Apr 6, 2026
Comment on lines +117 to +118
void reportMissingRenamerCheckFailed(Dependency dependency, Throwable e) {
LOGG
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Possible typo?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

no way, i forgot to finish that method. awesome.

Dependency: '%s'"""
.formatted(Util.toString(dependency)))
.severity(Severity.WARNING)
.solution("Apply the 'net.minecraftforge.renamer' plugin.")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Mention looking at the MDK Examples repo as applying the plugin alone doesn't fix built jars iirc

this.report("legacy-missing-renamer", "Missing Renamer Gradle for legacy Minecraft dependency", spec -> spec
.details("""
A legacy Forge dependency was declared, but Renamer Gradle has not been applied to the project!
While the workspace will continue to function, this may cause problems with resultant artifacts not being renamed to obfuscated mappings.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Something something "while your mod will work in dev, the built jar won't work in production without the renamer plugin applied and reobf used on it"

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.

[7.0] Show a warning when using 1.20.4- without the renamer plugin

2 participants