Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remapJar fails for common module: java.lang.NullPointerException: tinyRemapper #208

Open
Fuzss opened this issue Apr 30, 2024 · 0 comments

Comments

@Fuzss
Copy link

Fuzss commented Apr 30, 2024

I have a multi-loader setup with multiple common modules (to allow for shared code between some, but not all mod loader subprojects). The subprojects are related as follows:

- Common
    |- Common-ForgeApi
        |- Fabric
        |- NeoForge
    |- Common-NeoForge
        |- Fabric
        |- Forge

When building Common-ForgeApi and Common-NeoForgeApi for publishing to Maven the task fails:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':1.20.6:Common-NeoForgeApi:remapJar'.
> A failure occurred while executing net.fabricmc.loom.task.RemapJarTask$RemapAction
   > Failed to remap, java.lang.NullPointerException: tinyRemapper

However, building any of the other subprojects including Common does not run into any issue.
All three common subprojects set the targetNamespace to named, since I need the builds to be usable independently of Loom, e.g. with VanillaGradle.
Leaving the targetNamespace as intermediary does not run into the remapping issue, but as mentioned I need to publish my common builds as named.

This has not been an issue on Minecraft 1.20.4 when I was still using ArchLoom 1.5. The Gradle scripts have not been changed in any way during the update.

The repository containing all my code can be found here: https://github.com/Fuzss/forgeconfigapiport/tree/main/1.20.6
The issue can be reproduced by running either Common-NeoForgeApi:build or Common-ForgeApi:build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant