Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rename the root module of my project in Intellij

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.

like image 946
java_0100 Avatar asked Dec 22 '25 05:12

java_0100


1 Answers

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: Project name:

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

Once done, delete the .idea folder from your root project folder, rename your project folder on your system and then restart IntelliJ.

like image 143
iamgrodrigues Avatar answered Dec 23 '25 19:12

iamgrodrigues