Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 217: Allow Package Name specification #230

Merged
merged 9 commits into from
Sep 19, 2024

Conversation

brunovieira97
Copy link
Contributor

New step for allowing specification of a custom Package Name during project generation.

There is no default setting provided since the recommended value is always based on the combination of Group Id and Artifact Id.

Closes #217

@brunovieira97
Copy link
Contributor Author

@Eskibear could you review this PR or direct to some other contributor with write access?

@Eskibear
Copy link
Member

Eskibear commented Jan 3, 2024

Thank you for the pr. I haven’t been focusing and watching this repo for a while, and @jdneo @testforstephen are currently working on this project.

@brunovieira97
Copy link
Contributor Author

@jdneo @testforstephen this PR has been waiting for a review for quite a while, could you take a look?

@testforstephen
Copy link
Collaborator

@brunovieira97 sorry for the late response. I will take a look at your three PRs in the coming 1~2 weeks.

}

private async specifyPackageName(projectMetadata: IProjectMetadata): Promise<boolean> {
const recommendedPackageName = `${projectMetadata.groupId}.${projectMetadata.artifactId}`
Copy link
Collaborator

Choose a reason for hiding this comment

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

since the artifactId allows - in its name, but packageName does not allow it. It's better to replace - with _ when generating the default packageName from groupId and artifactId.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hadn't considered that, thanks!

Copy link
Collaborator

@testforstephen testforstephen left a comment

Choose a reason for hiding this comment

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

LGTM. thanks for contribution.

@testforstephen testforstephen merged commit 8bf8732 into microsoft:main Sep 19, 2024
4 checks passed
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.

Would like to add the "Package Name" option
3 participants