PinDroid
PinDroid copied to clipboard
Improve GRADLE build Performance
Parallel test execution maxParallelForks. Gradle can run multiple test cases in parallel by setting maxParallelForks
.
Disable report generation. We can conditionally disable it by setting reports.html.required = false; reports.junitXml.required = false
. If you need to generate reports, add -PcreateReports
to the end of Gradle's build command line.
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
.
Incremental compilation. Gradle recompile only the classes that were affected by a change. This feature is the default since Gradle 4.10. For an older versions, we can activate it by setting options.incremental = true
.
===================== If there are any inappropriate modifications in this PR, please give me a reply and I will change them.