User Tools

Site Tools


tutorial:migratemappings

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:migratemappings [2022/07/08 19:20] – external edit 127.0.0.1tutorial:migratemappings [2022/12/22 16:23] (current) – Add reference to tutorial:mappings in case people want to know more about how they work basil4088
Line 7: Line 7:
 ===== Loom 0.2.6 and above ===== ===== Loom 0.2.6 and above =====
  
-Say you want to migrate from 1.16.5 to 1.17.1.   +Say you want to migrate from 1.16.5 yarn to 1.17.1 yarn.
  
-  - Go [[https://fabricmc.net/versions.html|here]], select the version to migrate to, and copy the Gradle command under "Mappings Migration", for example ''gradlew migrateMappings %%--%%mappings %%"%%1.17.1+build.40%%"%%'' DO NOT modify your gradle.properties or build.gradle yet.   +  - Go [[https://fabricmc.net/develop|here]], select the version to migrate to, and copy the Gradle command under "Mappings Migration", for example ''gradlew migrateMappings %%--%%mappings %%"%%1.17.1+build.40%%"%%'' DO NOT modify your gradle.properties or build.gradle yet.   
   - Run the command in the root of your Gradle project.   - Run the command in the root of your Gradle project.
   - Your migrated sources will appear in ''remappedSrc''. Verify that the migration produced valid migrated code.   - Your migrated sources will appear in ''remappedSrc''. Verify that the migration produced valid migrated code.
   - Copy the sources from ''remappedSrc'' to the original folder. Keep the original sources backed up just in case.   - Copy the sources from ''remappedSrc'' to the original folder. Keep the original sources backed up just in case.
-  - Update your gradle.properties file according to the instructions in [[https://fabricmc.net/versions.html|the first site]].+  - Update your gradle.properties file according to the instructions in [[https://fabricmc.net/develop|the first site]].
   - 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.
 +
 +If you want to go from Mojang's official mappings, AKA mojmap, to yarn, make sure your mappings in ''build.gradle'' is set to ''loom.officialMojangMappings()'' before running ''migrateMappings''. For more information, check out the dedicated [[tutorial:mappings|Mappings]] page.
  
 === Additional customization ===  === Additional customization === 
tutorial/migratemappings.1657308044.txt.gz · Last modified: 2022/07/08 19:20 by 127.0.0.1