tutorial:migratemappings
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:migratemappings [2025/10/31 21:04] – typo cassiancc | tutorial:migratemappings [2025/11/16 00:02] (current) – cassiancc | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | :!: //A more thorough documentation of the process of migrating mappings, along with better, specific tooling is currently planned for the near future in order to help the transition into the non-obfuscated MC versions. This page will likely redirect to the proper documentation once it is in a satisfying state.// | + | ~~REDIRECT> |
| ====== Migrating to Yarn or Mojang Mappings in a Java codebase ====== | ====== Migrating to Yarn or Mojang Mappings in a Java codebase ====== | ||
| Line 7: | Line 7: | ||
| Loom does not support migrating code written in Kotlin. [[https:// | Loom does not support migrating code written in Kotlin. [[https:// | ||
| - | **Note: | + | **Note: |
| Line 18: | Line 18: | ||
| - Your migrated sources will appear in '' | - Your migrated sources will appear in '' | ||
| - Copy the sources from '' | - 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 '' | + | - If you are coming from Yarn, you can now replace your mappings in your '' |
| - Refresh the Gradle project in your IDE. | - Refresh the Gradle project in your IDE. | ||
| - Check and update any Mixin targets that may be outdated. | - Check and update any Mixin targets that may be outdated. | ||
| + | |||
| + | Your dependencies section should now contain this: | ||
| + | |||
| + | |||
| + | dependencies { | ||
| + | [...] | ||
| + | mappings loom.officialMojangMappings() | ||
| + | } | ||
| + | |||
| + | |||
| ===== Migrating to Yarn ===== | ===== Migrating to Yarn ===== | ||
| Line 30: | Line 40: | ||
| - Your migrated sources will appear in '' | - Your migrated sources will appear in '' | ||
| - Copy the sources from '' | - Copy the sources from '' | ||
| - | - Update or add to your gradle.properties file with the Yarn version specified on [[https:// | + | - Update or add to your '' |
| - | - If you are coming from Mojang Mappings, you can now replace your mappings in your build.gradle with Yarn's (i.e. '' | + | - If you are coming from Mojang Mappings, you can now replace your mappings in your '' |
| - Refresh the Gradle project in your IDE. | - Refresh the Gradle project in your IDE. | ||
| - Check and update any Mixin targets that may be outdated. | - Check and update any Mixin targets that may be outdated. | ||
| + | |||
| + | Your dependencies section should now contain this, with the version of Yarn you are using specified in your '' | ||
| + | |||
| + | dependencies { | ||
| + | [...] | ||
| + | mappings " | ||
| + | } | ||
| + | |||
| + | === Migrating Split Sources === | ||
| + | |||
| + | At this time, users of split sources currently need to migrate their main source set with the process above, then do the process again, specifying the path to their client source set. As a reference, the command to migrate a client source set to Mojang Mappings is below. | ||
| + | migrateMappings --mappings " | ||
| === Additional customization === | === Additional customization === | ||
tutorial/migratemappings.1761944648.txt.gz · Last modified: 2025/10/31 21:04 by cassiancc