Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Improve GRADLE build Performance #1097

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ buildscript {
}

allprojects {
tasks.withType(Test).configureEach {
maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1
if (!project.hasProperty("createReports")) {
reports.html.required = false
reports.junitXml.required = false
}
}

repositories {
google()
jcenter()
Expand All @@ -19,4 +27,4 @@ allprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}
}