Leon Linhart
05/13/2026, 10:31 AMorg.gradle.internal.exceptions.NonGradleCause)? I initially assumed it would be sufficient to use a VerificationException but that is still reported as if there was a technical build failure rather than a semantic failure. (Example in 🧵)Leon Linhart
05/13/2026, 10:35 AM> Task :test FAILED
SomeTest > someTestMethod() FAILED
java.lang.AssertionError at SomeTest.java:25
1 test completed, 1 failed
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///<...>/build/reports/tests/test/index.html
* Try:
> Run with --scan to get full insights.
BUILD FAILED in 3s
21 actionable tasks: 3 executed, 18 up-to-date
instead of
> Task :customVerificationTask FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task 'customVerificationTask'.
> Custom verification failed
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at <https://help.gradle.org>.
BUILD FAILED in 5s
8 actionable tasks: 2 executed, 6 from cache
Specifically, it would be nice if I could indicate that Gradle should omit the irrelevant bullet points under "Try:".Thomas Broyer
05/13/2026, 1:11 PMLeon Linhart
05/13/2026, 3:42 PMVampire
05/13/2026, 9:37 PM