From 52147512185dfe6f73a81897919fd718548ddcc2 Mon Sep 17 00:00:00 2001
From: Benoit Marty <benoit@matrix.org>
Date: Mon, 17 Oct 2022 15:00:39 +0200
Subject: [PATCH] Let the doctor be less strict and just warn. Keep the useful
 log "Is CI build: $isCiBuild".

---
 tools/gradle/doctor.gradle | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/gradle/doctor.gradle b/tools/gradle/doctor.gradle
index c77d2eb338..705bb3e250 100644
--- a/tools/gradle/doctor.gradle
+++ b/tools/gradle/doctor.gradle
@@ -54,7 +54,7 @@ doctor {
     /**
      * Warn when not using parallel GC. Parallel GC is faster for build type tasks and is no longer the default in Java 9+.
      */
-    warnWhenNotUsingParallelGC = !isCiBuild
+    warnWhenNotUsingParallelGC = true
     /**
      * Throws an error when the `Delete` or `clean` task has dependencies.
      * If a clean task depends on other tasks, clean can be reordered and made to run after the tasks that would produce
@@ -82,7 +82,7 @@ doctor {
         /**
          * Fail on any `JAVA_HOME` issues.
          */
-        failOnError.set(!isCiBuild)
+        failOnError.set(false)
         /**
          * Extra message text, if any, to show with the Gradle Doctor message. This is useful if you have a wiki page or
          * other instructions that you want to link for developers on your team if they encounter an issue.