difference in the exception message is related to ...
# eap
u
difference in the exception message is related to the fact that Gradle is being run without
-ea
in your case, I believe