Gradle builds really slow with a multi-project structure

后端 未结 3 1907
旧巷少年郎
旧巷少年郎 2020-12-24 07:12

When building with gradle on a multi-project setup containing roughly 140 projects/libraries, the build time took 1 hour and 22 minutes. And i was using --parallel

3条回答
  •  孤城傲影
    2020-12-24 08:04

    According to this post.

    Right now each project will pre-dex its dependencies on its own. This means 2 components depending on the same library will both run pre-dex on that library's classes.jar which is silly. We're looking at fixing this.

提交回复
热议问题