Как Gradle решает какие модули пересобирать Gradle compiles Kotlin to…

Как  Gradle решает какие модули пересобирать

Gradle compiles Kotlin to bytecode, uses the ASM library to strip out all private internals leaving only the public skeleton, then SHA-256 hashes that skeleton. If the hash matches the cached value, dependent modules are skipped entirely — only a public signature change produces a different hash and triggers downstream recompilation.


#android #gradle  #kotlin

https://proandroiddev.com/how-gradle-decides-what-to-recompile-the-multi-module-secret-that-surprises-most-android-devs-353a5437488b
Medium
How Gradle Decides What to Recompile — The Multi-Module Secret That Surprises Most Android Devs— ABI Hashing Explained
You changed one private function. Gradle rebuilt only one module out of forty-seven. Here’s the exact mechanism behind that decision.
❤5
24 июня 2026 г. 4,1 тыс. 1 37