Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Improve GRADLE build Performance #321

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ChenZhangg
Copy link

@ChenZhangg ChenZhangg commented Oct 18, 2021

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.

@pivotal-cla
Copy link

@ChenZhangg Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@ChenZhangg Thank you for signing the Contributor License Agreement!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants