Let the doctor be less strict and just warn.

Keep the useful log "Is CI build: $isCiBuild".
This commit is contained in:
Benoit Marty 2022-10-17 15:00:39 +02:00
parent 36e5166051
commit 5214751218

View File

@ -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+. * 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. * 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 * 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. * 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 * 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. * other instructions that you want to link for developers on your team if they encounter an issue.