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 {
build {

During compile time i can access the nms classpath just well. But problems happen during runtime. ed = ((CraftLivingEntity) bukkitEntity).getHandle();


Caused by: java.lang.ClassNotFoundException:
        at ~[?:?]

To my understanding that line of code above should be remaped to 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?