[PR #500] Improve GRADLE build Performance #495

Open
opened 2026-02-28 01:24:50 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ushahidi/SMSSync/pull/500
Author: @ChenZhangg
Created: 10/13/2021
Status: 🔄 Open

Base: masterHead: Modify_GRADLE_2


📝 Commits (2)

  • 7bf2d88 Improve GRADLE build Performance
  • ee2399a Update build.gradle

📊 Changes

1 file changed (+11 additions, -1 deletions)

View changed files

📝 build.gradle (+11 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ushahidi/SMSSync/pull/500 **Author:** [@ChenZhangg](https://github.com/ChenZhangg) **Created:** 10/13/2021 **Status:** 🔄 Open **Base:** `master` ← **Head:** `Modify_GRADLE_2` --- ### 📝 Commits (2) - [`7bf2d88`](https://github.com/ushahidi/SMSSync/commit/7bf2d881547876d94cf8c0a7ea894b6364249221) Improve GRADLE build Performance - [`ee2399a`](https://github.com/ushahidi/SMSSync/commit/ee2399a99d44074fd30f348b9de9f191fd3971c4) Update build.gradle ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `build.gradle` (+11 -1) </details> ### 📄 Description [Parallel test execution maxParallelForks](https://docs.gradle.org/current/userguide/performance.html#parallel_test_execution). Gradle can run multiple test cases in parallel by setting `maxParallelForks`. [Disable report generation](https://docs.gradle.org/current/userguide/performance.html#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](https://docs.gradle.org/current/userguide/performance.html#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](https://docs.gradle.org/current/userguide/performance.html#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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SMSSync#495
No description provided.