tutorial:migratemappings
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:migratemappings [2020/01/13 20:38] – rewrite mercury section jamie | tutorial:migratemappings [2025/10/31 21:04] (current) – typo cassiancc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Updating Yarn mappings in a Java codebase ====== | + | :!: //A more thorough documentation of the process of migrating |
| - | ====== Loom 0.2.6 and above ====== | + | |
| - | Currently, this process | + | |
| - | Say you want to migrate from 1.14.4 to 19w46b. | + | ====== Migrating |
| - | | + | Loom allows semi-automatic updating of the mappings used in a Java codebase. This can be a useful tool for users wishing to keep their codebase up-to-date with the new changes in Yarn, or for users wishing to change to different mappings, including Mojang's own mappings. |
| - | | + | |
| - | - Your migrated source will appear in '' | + | |
| - | - Update your gradle.properties file according to the instructions in [[https:// | + | |
| - | - You're done. | + | |
| - | === Additional customization === | + | Loom does not support migrating code written in Kotlin. [[https://github.com/Deftu/ReplayMod-Remap|Third party tools]] are available. |
| - | * Specify from where to take your Java files with '' | + | |
| - | * Specify where to output the remapped source with '' | + | |
| - | * Specify a custom place to retrieve the mappings from with '' | + | |
| - | === Reporting issues === | + | **Note:** This automated process does not yet handle Mixins |
| - | Loom uses [[https:// | + | |
| - | ====== Loom 0.2.5 and below ====== | ||
| - | ==== Requirements | + | ===== Migrating to Mojang Mappings ===== |
| - | * Fabric-Loom 0.2.2 or above | + | These instructions cover migration from Yarn to Mojang Mappings. |
| - | * A Java codebase - Kotlin and Scala will not, currently, do. | + | |
| - | * Some assembly required | + | |
| - | ==== Instructions ==== | + | - You'll need a command to migrate your mappings to Mojang Mappings, for example '' |
| + | - Run the command in the root of your Gradle project, either through the terminal, or by adding it as a run configuration in IntelliJ Idea. | ||
| + | - Your migrated sources will appear in '' | ||
| + | - Copy the sources from '' | ||
| + | - If you are coming from Yarn, you can now replace your mappings in your build.gradle with Mojang Mappings (i.e. mappings '' | ||
| + | - Refresh the Gradle project in your IDE. | ||
| + | - Check and update any Mixin targets that may be outdated. | ||
| - | - Figure out your target mappings version. For example, " | + | ===== Migrating |
| - | - Make sure the mappings for this version get created. This is the hacky part, as currently the only way to do it is to edit the " | + | |
| - | - Run the following magical wizardry command: '' | + | |
| - | * " | + | |
| - | * " | + | |
| - | * " | + | |
| - | - Copy the remapped source code to the input directory, if everything' | + | |
| - | - Hope for the best. | + | |
| - | //Note: You may need to specify the full paths in quotes, try this if you get file not found issues.// | + | These instructions cover migration from Mojang Mappings (or an older version of Yarn) to Yarn. |
| - | This should work across Minecraft versions as well, provided we haven't massively broken Intermediaries | + | - Go [[https:// |
| + | - Run the command in the root of your Gradle project, either through | ||
| + | - Your migrated sources will appear in '' | ||
| + | - Copy the sources from '' | ||
| + | - Update or add to your gradle.properties file with the Yarn version specified on [[https:// | ||
| + | - If you are coming from Mojang Mappings, you can now replace your mappings in your build.gradle with Yarn's (i.e. '' | ||
| + | - Refresh the Gradle project in your IDE. | ||
| + | - Check and update any Mixin targets that may be outdated. | ||
| + | |||
| + | |||
| + | |||
| + | === Additional customization === | ||
| + | * Specify from where to take your Java files with '' | ||
| + | * Specify where to output the remapped source with '' | ||
| + | * Specify a custom place to retrieve the mappings from with '' | ||
| + | |||
| + | === Reporting issues === | ||
| + | Loom uses a fork of [[https:// | ||
tutorial/migratemappings.1578947913.txt.gz · Last modified: 2020/01/13 20:38 by jamie