Paperweight wont remap nms classes

Im trying to figure out how to use paperweight for plugin development.

Im aware that there are some examples on github, but all of them are build with kotlin - my build scripts are writen in groovy i dont have access to extension functions etc.

plugins {
    id 'java-library'
    id 'com.github.johnrengelman.shadow' version '7.0.0'
    id "io.papermc.paperweight.userdev" version "1.1.12"
dependencies {
   paperweightDevelopmentBundle("io.papermc.paper:dev-bundle:1.17.1-R0.1-SNAPSHOT")
build {
    dependsOn(shadowJar)
    dependsOn(reobfJar)

During compile time i can access the nms classpath just well. But problems happen during runtime.

net.minecraft.world.entity.LivingEntity ed = ((CraftLivingEntity) bukkitEntity).getHandle();

throws

Caused by: java.lang.ClassNotFoundException: net.minecraft.world.entity.LivingEntity
        at java.net.URLClassLoader.findClass(URLClassLoader.java:433) ~[?:?]

To my understanding that line of code above should be remaped to net.minecraft.server.world.entity.EntityLiving since this class exists in the server jar

But that wont hapenn to me for some reason i dont understand.

1] How can i make gradle to remap the jar? I though that making build task depend on reobfJar will be enough, but apparently its not.
2] Can i use mappings that were released by mojang instead of community mappings?