-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
Moshi annotation processor not recognized #454
Comments
Once again, thanks for the reproducer. |
I think that issues {
all {
onAny {
severity('fail')
}
}
} is another, or maybe just a misleading API. |
Resolved via related PR. |
The API is a bit misleading I'd say. I think it would be enough to update that you have on the configuration snippet here https://github.com/autonomousapps/dependency-analysis-android-gradle-plugin/wiki/Customizing-plugin-behavior#failure-conditions-and-filtering |
I agree it's confusing. It's a historical artifact. The plugin didn't originally give advice regarding plugins. Do you mind filing an issue? |
Opened #462 After updating to |
Sure, those always help.
On August 29, 2021, GitHub ***@***.***> wrote:
Opened #462 <https://github.com/autonomousapps/dependency-analysis-
android-gradle-plugin/issues/462>
After updating to 0.77.0 the fix for moshi works but I noticed that
the processor analysis also fails on Dagger: Could not reflectively
access processor class dagger.internal.codegen.ComponentProcessor. I
guess I didn't notice it before because we only have dagger in 3
checked projects and our build is fairly noisy. Do you want an extra
reproducer for dagger?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<https://github.com/autonomousapps/dependency-analysis-android-gradle-
plugin/issues/454#issuecomment-908258458>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/ABJG5PPMAHY427ECLG5OFS3T7NSEZANCNFSM5C4FKUHQ>.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-
email&mt=8&pt=524675> or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-
email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Build scan link
Reproducer
kapt-moshi.zip
Plugin version
0.76.0
Gradle version
7.0 and 7.2
(Optional) Android Gradle Plugin (AGP) version
4.2.1 and 7.0.1
Describe the bug
I'm using Moshi's annotation processor through kapt. When running
buildHealth
I getSo it seems that the plugin specifically fails to access
JsonClassCodegenProcessor
and then reports kapt as unused because there are no other processors.To Reproduce
Steps to reproduce the behavior:
kapt("com.squareup.moshi:moshi-kotlin-codegen:1.12.0")
to a project@JsonClass(generateAdapter = true)
Expected behavior
kapt is not reported as unused.
Additional context
This is the only processor where I see this happening, others like Dagger or moshi-sealed seem fine.
Side note: Even when adding
the plugin reporting kapt as unused does not fail the build. Might be another bug.
The text was updated successfully, but these errors were encountered: