/KOGE

Self-study handbook for Kotlin-oriented Gradle Essential. 面向 Kotlin 的 Gradle 基础手册。

Apache License 2.0Apache-2.0

KOGE

Self-study handbook for Kotlin-oriented Gradle Essential.

Read it in English or 简体中文.

  • 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
  • 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