I think that might be the antivirus that runs the Forge installer in a sandbox so it doesn't actually do anything, try disabling it while you run the installer.
First of all, why are you shadowing log4j? Minecraft already provides log4j2.
Second if build is running shadowjar instead of jar then you might need to tweak the line where it says jar.finalizedBy('reobfJar') to finalize shadowJar instead