Self-study handbook for Kotlin-oriented Gradle Essential.
-
Basis
- Getting started:
- Gradle
- Script
- Plugin
- Root build.gradle(.kts)
- Module's build.gradle(.kts)
- settings.gradle(.kts)
- CLI
- Kotlin DSL:
- High-order functions and lambdas
- Type-safe builders
- @DslMarker
- Common Kotlin DSL (Common Groovy DSL)
- Gradle Kotlin DSL
- DSL Configuration:
- Java Plugin
- Kotlin Plugin
- Android Gradle Plugin
- Dependencies
- 3rd Party Plugins
- Regular Tasks:
- Common Tasks
- Java Tasks
- Android Tasks
- Lifecycle:
- Initialization
- Configuration
- Execution
- Java Plugin Lifecycle
- Android Gradle Plugin Lifecycle
- Getting started:
-
Customization
- Advanced Scripts:
- init.gradle(.kts)
- Script Plugin
- buildSrc
- Manage Dependency version
- Arguments:
- Gradle Flags
- CLI Aruguments
- gradle.properties
- System Properties
- Build Time Optimization
- Customized Task:
- Authoring Task
- Get APK / AAR / AAB
- Modify Manifest
- Performance Optimization:
- Upgrade Gradle/AGP/Kotlin frequently
- Tricks that work and may not work
- Advanced Scripts: