FabricMC / fabric-example-mod

Example Fabric mod
Creative Commons Zero v1.0 Universal
1.66k stars 940 forks source link

Manually set the artifactId for publishing #233

Closed xpple closed 1 year ago

xpple commented 1 year ago

By default, Gradle will use the project name configured in settings.gradle (rootProject.name), after which it will default to the project's directory name. The directory name is very often equal to the capitalised mod name. This can be problematic for GitHub Packages, since capitalised artifacts are not allowed. This PR prevents that from happening.

Edit: See this stackoverflow question for the error GitHub Packages returns.

modmuss50 commented 1 year ago

This repo is generated from https://github.com/FabricMC/fabricmc.net/tree/main/scripts/src/lib/template/templates please make the changes over there. Thanks.