Skip to content

Fix inconsistent package naming by forcing lowercase in SuggestClassNamePropertyDerivation#2620

Open
destroydevs wants to merge 1 commit intominecraft-dev:devfrom
destroydevs:dev
Open

Fix inconsistent package naming by forcing lowercase in SuggestClassNamePropertyDerivation#2620
destroydevs wants to merge 1 commit intominecraft-dev:devfrom
destroydevs:dev

Conversation

@destroydevs
Copy link
Copy Markdown

Description

Currently, the SuggestClassNamePropertyDerivation class uses decapitalize() when generating the package part of the Main Class FQN. This leads to camelCase naming (e.g., com.example.myProject), which violates standard Java/Kotlin package naming conventions.

Changes

  • Replaced .decapitalize() with .lowercase() for the artifact/name segment of the package path.
  • Added .lowercase() to coords.groupId to ensure the entire package path remains standard-compliant.

Motivation

Java packages should always be lowercase. While the "Old Wizard" handled this correctly, the new Custom Wizard logic was preserving upper-case characters from the project name/artifact ID. This change aligns the custom wizard with professional development standards and the behavior seen in the Mod creation templates.

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.

1 participant