본문 바로가기
Tool/Intellij

[IntelliJ] build , out 폴더의 차이

by daisy035510 2024. 1. 9.
반응형

 

IntelliJ에서 gradle 사용시 build 폴더와 out 폴더의 차이


IntelliJ에서 Gradle 기준으로 사용하다보면 build 폴더와 out 폴더가 각각  생기는 것을 

확인할 수 있다.

build된 결과물이 생기는 건 이해할 수 있는데 

아래의 이미저처럼 왜 build 따로 out 따로 생기는걸까?

 

 

# build 폴더 vs out 폴더

build 폴더 👉 Gradle을 Build한 결과물이 생성되는 곳

out 폴더 👉 IntelliJ를 Build한 결과물이 생성되는 곳

 

Gradle build 방식과 IntelliJ build 방식은 차이가 있는데(IntelliJ build 방식은 증분빌드방식이라 더 빠름)

그래서 build output 폴더 경로가 다르기 때문이다

 

 

 

 

# Gradle compiler output 폴더

 

Project Settings > Project > Compiler output 에서 확인가능하다

 

 

 

반응형