diff --git a/build.gradle b/build.gradle index e45be79e3..33ba31e14 100644 --- a/build.gradle +++ b/build.gradle @@ -10,3 +10,12 @@ buildscript { classpath 'com.android.tools.build:gradle:1.0.0' } } +allprojects { + tasks.withType(Test).configureEach { + maxParallelForks = Runtime.runtime.availableProcessors().intdiv(2) ?: 1 + if (!project.hasProperty("createReports")) { + reports.html.required = false + reports.junitXml.required = false + } + } +}