2021. 4. 23. 18:20ㆍAndroid/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 파일에 있는 설정을 재정의할 수 있습니다.
'Android > Gradle' 카테고리의 다른 글
Gradle 파일(settings.gradle / build.gradle) 및 사용법 알아보기 (0) | 2024.03.16 |
---|---|
Gradle 개념 / 특징 및 Gradlew / 사용법 알아보기 (1) | 2024.03.15 |
Firebase Performance 서비스 추가 Gradle 설정 과정 참고(전이의존성 해결) (1) | 2024.03.12 |
Submodule Proguard 적용 (0) | 2023.10.19 |
SdkVersion 관계 (0) | 2021.04.23 |