After then, you can run the generated jar with java -jar build/libs/Minecraft_Lobby-1.0-SNAPSHOT-all.jar OR you can generate a native image using graalvm (if installed) native-image -jar ...
Bringing attention to this issue now before it becomes more of a problem later. As of 1.17 of Minecraft, Java 16 is required or else it will not function. Issue is ...