Step 2.1 - If you have additional SourceSets containing mixins This is a special fat jar which contains the upstream dependencies required by the Mixin AP so that you don't have to specify them all by hand. Notice that the AP dependency has the additional classifier processor. Minecraft 'net.minecraftforge:forge:1.17.1-37.0.70 ' // Apply Mixin APĪnnotationProcessor 'org.spongepowered:mixin:0.8.5:processor ' The userdev artifact is a special name and will get all sorts of transformations applied to it. If this is any group other than 'net.minecraft', it is assumed // that the dep is a ForgeGradle 'patcher' dependency, and its patches will be applied. Specify the version of Minecraft to use. Add the Mixin AP dependency to the dependencies block: The AP configuration for main is called annotationProcessor. It should currently contain the minecraft dependency and a bunch of comments, as well as any other dependencies you've added manually. For the purposes of this guide we will assume that the version is 0.8.5 (the current release version at the time of writing). This is not the dependencies block in the buildscript block at the top of your gradle file, but the larger dependencies block further down the file. To add the Mixin AP dependency to your project locate the dependencies block for the project. The AP dependency should be the same version or newer as the version used in your project (if you're not sure what version of Mixin you're using, see the section at the end of this guide). MixinGradle's job is to configure the Mixin Annotation Processor (AP), however the AP is not applied automatically, we need to add it as a dependency. We will add the MixinGradle dependency to allow us to load the plugin:Īpply plugin: ' ' // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup.Īpply plugin: 'maven-publish ' // MixinGradle:Īpply plugin: ' ' Step 2 - Adding the Mixin Annotation Processor Immediately below the repositories block inside the buildscript block is the dependencies block which specifies dependencies required by the build script itself (not the project). Open your adle and locate the buildscript block at the top of the file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |