Skip to content

Conversation

@WhosNickDoglio
Copy link
Contributor

@WhosNickDoglio WhosNickDoglio commented Feb 15, 2025

Gradle supports building modules in parallel as well as avoiding rebuilding modules when nothing in them changes via the build cache feature.

This PR enables both of those features. Right now any improvements from these features is pretty minimal but as the project grows and potentially moduralizes more these provide a large benefit.

@WhosNickDoglio WhosNickDoglio changed the title Ndoglio/gradle cache Enable Gradle Build cache and building modules in parallel Feb 15, 2025
@WhosNickDoglio WhosNickDoglio marked this pull request as ready for review February 15, 2025 18:46
@0xtmphey
Copy link
Contributor

Just to add some context: multi-module KMP projects kinda sucks on iOS now:

  • Space usage grows significantly with each added gradle module (it creates native compilation target for each module)
  • Build experience is bad. For some reason, each gradle module takes lots of memory to compile to native and if you enable parallel build, you usually end up in OOM state.

But the above just FYI, in general cache and parallel options are must-haves

@crc-32 crc-32 merged commit f7f90d1 into pebble-dev:master Feb 28, 2025
1 check failed
@WhosNickDoglio WhosNickDoglio deleted the ndoglio/gradle-cache branch February 28, 2025 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants