I get "Invalid source release: 17" as an error!
Use Java 17. Open up File > Project Structure and change your SDK to Java 17.
If you still get the issue, you may need to go into File > Settings > Build, Execution, Deployment > Build Tools > Gradle and change the Java that Gradle uses too.
How do I stop server.properties from constantly changing?
Remove the last line in the gitignore file.
My client hangs on a blank screen on trying to my test server!
Open your server.properties and set online-mode to false.
This template is available under the CC0 license. Feel free to learn from it and incorporate it in your own projects.