Build 구성

2021. 4. 23. 18:20Android/Gradle

setting.gradle : 앱 build시 포함 필요 모듈 Gradle에 알려줌(single project인지 multi-project인지 구분할 수 있는 기준)

최상위 빌드 파일(build.gradle(project)) : 루트 프로젝트 디렉터리에 있으며 프로젝트의 모든 모듈에 적용되는 빌드 구성을 정의

 

1 * The buildscript block is where you configure the repositories and 2 * dependencies for Gradle itself—meaning, you should not include dependencies 3 * for your modules here.

 

1 * The allprojects block is where you configure the repositories and 2 * dependencies used by all modules in your project, such as third-party plugins 3 * or libraries.

모듈 수준의 빌드 파일(build.gradle) : 각 project/module/ 디렉터리에 있는 모듈 수준 build.gradle 파일을 사용하면 이 파일이 위치하는 특정 모듈의 빌드 설정을 구성할 수 있습니다. 이러한 빌드 설정을 구성하면 맞춤 패키징 옵션을 제공(예: 추가적인 빌드 유형 및 제품 버전)할 수 있으며, main/ 앱 매니페스트 또는 최상위 build.gradle 파일에 있는 설정을 재정의할 수 있습니다.


참고 url : https://developer.android.com/studio/build?hl=ko