-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
AdviceAggregateReportTask class cast exception #295
Comments
Thanks for the report. I will take a look. |
@Burdu some questions
I can fix with with a safe cast, but I'd like to know how this could happen first. |
Unfortunately I can't test with AGP lower than |
My concern is that it shouldn't be possible for something that isn't a You might also try debugging (instructions in wiki) to see what that dependency actually is. |
OK, I found the cause.
Then I'm using this module to constraint dependencies versions in every submodule from root gradle
|
That's fascinating. I use platforms in my own projects, so I think this must have to do with it being an included build? I'll experiment a bit. Thanks a lot for the investigation. |
Which plugins do you have applied in your |
I just replicated your configuration, based on this comment. I cannot replicate your issue. I'm willing to safe-cast, but I'd like to get to the bottom of this first, if you're willing. Do you have any plugins besides java-platform applied to your |
The versions project doesn't have any other plugin applied to it besides For the main project I have added to the classpath the following plugins, by declaring them to
|
AdviceAggregateReportTask
crashes when trying to cast(dependency as ProjectDependency)
Plugin version
0.61.0
Gradle version
6.6.1
Android Gradle Plugin (AGP) version
4.2.0-alpha13
- yes, I know it's not supported yetDescribe the bug
To Reproduce
Steps to reproduce the behavior:
Running
./gradlew buildHealth
fails with exceptionSeems to happen because of a
compileOnly
dependency.Expected behavior
Running
./gradlew buildHealth
should gracefully handle unsupported dependenciesThe text was updated successfully, but these errors were encountered: