I want to rename the root module of my java project, however I'm getting an error "Can't rename root module". I'm using Intellij Idea 2019.3.2. I'm also using gradle as the build tool.
You can rename the root module of your java project, following these steps:
Go to Project Structure (Ctrl+Alt+Shift+S) → Project Settings / Project → Project name:

Open the settings.gradle file and rename the rootProject.name

Once done, delete the .idea folder from your root project folder, rename your project folder on your system and then restart IntelliJ.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With