ramack / ActivityDiary

Android diary for any kind of activities
GNU General Public License v3.0
73 stars 37 forks source link

Improve GRADLE build Performance #307

Closed shisheng-1 closed 2 years ago

shisheng-1 commented 2 years ago

Process forking options. Gradle will run all tests in a single forked VM by default. This can be problematic if there are a lot of tests or some very memory-hungry ones. We can fork a new test VM after a certain number of tests have run by setting forkEvery.

we can add tasks.withType(Test).configureEach {forkEvery = 100} into build.gradle to enable this strategy