Forge Client 1.20.2 Crash when run minecraft

Hello guys. First of all, thanks for any help. I have been blocked for few days with this problem and i don’t find any solution online.

I’m new in minecraft modding. I’m developing a simple mod using a mixin. My main problem is that my mod works perfect in test environment (running ./gradlew runClient), but when i add my mod in the mods minecraft forge folder (after ./gradlew build), the game crash with the following log:

The log prints “no refmap loaded” but in .jar the refmap.json file is generated whithout any problems (look the attached image).


My build.gradle looks like follows:

And my settings.gradle is:

My main .java is:

Thanks again for any help.