Contributing
Building ServerPackCreator locally
Clone a branch of the repository:
git clone -b $BRANCH https://github.com/Griefed/ServerPackCreator.git
Where $BRANCH represents the branch you want to clone.
If you are on linux, run chmod +x gradlew first.
Build with:
build --info --full-stacktrace
The Build All task is configured to do everything automatically, from installing frontend dependencies, assembling the web-frontend, copying some files around, build and testing.
Contributing via GitHub Forks
If you want to contribute to ServerPackCreator, then the following procedure must be adhered to:
Fork ServerPackCreator on GitHub
Switch to the develop branch. If the develop branch does not exist, create it from main.
Make your changes to the develop branch:
Follow conventional commit messages. See Commits-section for more details. See
.releaserc.ymlfor details. Example:feat: Allow upload of modpack-export zip-archive to web-frontend
refactor: Use apache commons-io for copying, instead of Files
Open a PR on GitHub:
PR title: Your Username - Branch type (e.g. feat) - Short description of your changes. Example:
Griefed - feat - Allow upload of modpack-export zip-archive to web-frontend
PR description: A short but concise description of your PRs goal and/or purpose.
Done!
Code
Config file: If you want to contribute to SPC, please make sure you do not change the
serverpackcreator.conf-file. Ideally, any version of SPC will work with any config file, as they all have the same content. Changing what's inside theserverpackcreator.conf-file may make versions incompatible to each other, but I want users to be able to simply download the newest version without having to migrate their config file or even worrying about such a thing. Therefore, I ask that you do not touch theserverpackcreator.conf-file.Variable names: Please keep variable names verbose i.e.
thisStoresSomethingorcheckForStuffor some such. Variables likeaandtmpAmake code harder to read.Translating: If you wish to contribute to translating ServerPackCreator, see
Adding a translationin the HELP