본문 바로가기

카테고리 없음

intellij root module 이름 변경

사진을 보면 DormitoryProj[DormitoryProj]으로 나와있다.

이는 디렉토리명[모듈명]을 나타낸다.

디렉토리명을 바꾸는 것은 파일탐색기에서 쉡게 할 수 있다. 그럼 이제 []안의 이름을 바꾸기 위해 아래 사진처럼 rename을 하면 root 모듈의 이름은 바꿀 수 없다고 나온다.

 

이때 file -> project Structure -> projectSettings -> name을 원하는 이름으로 설정.

이후 settings.gradle에서 아래의 내용을 수정한 다음에 인텔리제이를 재시작하면 된다.

rootProject.name = '모듈이름'

 

 

참고

https://stackoverflow.com/questions/62672357/rename-the-root-module-of-my-project-in-intellij

 

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.

stackoverflow.com