New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure from BuildListener are ignored #7329
Comments
Maybe similar to #6900 ? |
I should have searched better, thanks for the link! |
Playing around with the behavior reported in #6900, I tested using |
The decoration did not cause this failure - It doesn't matter if you throw or call The reason why @adammurdoch would you mind taking a look at this? The behavior is pretty confusing now, as you will get both a Looking at the code, the behavior was odd before too. If a listener failed, it was actually called again with that failure. |
Hi All, Do you have any updates on that issue ? It's blocking our migration to the latest gradle. |
Fixed via #7510. The fix will be in Gradle 5.0. The PR doesn't fix the issue of missing location information and misleading |
When a
BuildListener
is registered, any exception thrown during its execution should fail the build.With the following
settings.gradle
:and an empty
build.gradle
Expected Behavior
Running
./gradlew tasks
should fail the build as the listener throws an exception.That is the case with Gradle 4.9
Current Behavior
Starting with Gradle 4.10 and the latest 5.0 nightly, the build is successful.
Steps to Reproduce (for bugs)
settings.gradle
as indicated abovebuild.gradle
Your Environment
The text was updated successfully, but these errors were encountered: