mirror of
https://github.com/GTNewHorizons/Postea.git
synced 2026-11-12 16:37:38 +00:00
1.6 KiB
1.6 KiB
Migration guides
Generic migration
Migration for the typical mod which doesn't usy anything special but minecraft forge and some library dependencies. For core plugin, mixins, shadowing, access transformes, asm or etc. you'll need to do some extra steps. If they are missing in this document - we will gladly receive your suggestions/contribution.
- Copy and replace all files from template to your repository, but: // TODO: (maybe we should have a task in CI which attaches zip with all files but these, called "migration-bundle.zip" or smth)
build.gradlesrcLICENSEREADME.mdbuild.gradle(.kts)
- Copy all repositories from your
build.gradle(.kts)torepositories.gradle - Copy all dependencies from your
build.gradle(.kts)todependecies.gradle - replace your
build.gradle(.kts)withbuild.gradlefrom template. In case you have written some custom tasks/configurations not present in the template - you'll best to move them to separate file and link it in this, like for example it does this withdependencies.gradle - Adapt
gradle.propertiesto your mod - Ensure
src/main/resources/mcmod.infocontains${modId},${modName}.${modVersion}and${minecraftVersion} - Run
./gradlew clean setupDecompWorkspace
Mixin configuration
For the reference checkout the example mixin configuration branch of the template.
- Extract mixins package and plugin configuration from
mixins.yourModId.jsontogradle.properties - Implement MixinPlugin according to example from the reference
- Remove mixins.mymodid.json