Skip to content

Source-level class, field and method name remapping for use by ReplayMod/preprocessor, supports Java+Kotlin, also remaps some Mixin annotiations

License

Notifications You must be signed in to change notification settings

unimined/source-remap

 
 

Repository files navigation

Remap

This is a fork of https://github.com/ReplayMod/remap for use with unimined. it will be dynamically polled by unimined only when needed and run in a separate process to fulfil the plugin requirements of GPL 3, for unimined itself to not have to be GPL 3.

from johni0702: no. though it does not force mods into being GPL (compatible), only their build scripts (and those are probably either already gpl compatible or not distributed in the first place): https://www.gnu.org/licenses/gpl-faq.html#WhatCaseIsOutputGPL and depending on how you interact with it, it might not even infect anything at all: https://www.gnu.org/licenses/gpl-faq.html#GPLPlugins (its current literal main method doesn't have all the options, but its more general interface too is basically just "set some options, invoke, wait for it to return").

Towards that end, I still need to modify the remapper for use in unimined, thus this repo distributes the changed source code, as well as allowing me to upload it to my maven easier.

Migrate from Yarn to Mojmap

To migrate from Yarn to Mojmap, go into your project's build script and add this code:

afterEvaluate {
    println(sourceSets.main.compileClasspath.join(File.pathSeparator))
}

This will take effect when you reconfigure your project (such as when refreshing/reloading Gradle in your IDE). It will print out your project's classpath, which you'll need later.

Note

If you're working on a multimodule project (such as if using Architectury), you should do this for each module, and pass all classpaths.

Now you need

License

The Remap is provided under the terms of the GNU General Public License Version 3 or (at your option) any later version. See LICENSE.md for the full license text.

About

Source-level class, field and method name remapping for use by ReplayMod/preprocessor, supports Java+Kotlin, also remaps some Mixin annotiations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages

  • Kotlin 96.9%
  • Java 3.1%