You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imagine I have a class hierarchy like the following:
classSomeClassAextendsParent { // parent comes from parent.jar
}
classParentextendsGrandParent { // GrandParent comes from grandparent.jar
}
And if parent.jar doesn't declare an API dependency on grandparent.jar (sadly, this doesn't always happen, and obviously requires fixing the upstream libraries before I can take a dependency on parent.jar), then I'm forced to do the following in my build.gradle:
The problem comes in with checkUnusedDependencies which will flag that grandparent is an unnecessary declaration.
I believe this is because the ASMDependencyAnalyzer which is utilized has a "bug" in its usage. Particularly, if you read through the implementation, it only parses classes at a single layer of hierarchy. Therefore, if will include Parent as being a dependency, but will not include GrandParent as it doesn't recursively traverse up the hierarchy.
What did you want to happen?
At the moment, I'm forced to add grandparent as an ignored dependency in checkUnusedDependencies even though it is really only added because of a dependency issue from parent.
The text was updated successfully, but these errors were encountered:
What happened?
Imagine I have a class hierarchy like the following:
And if
parent.jar
doesn't declare an API dependency ongrandparent.jar
(sadly, this doesn't always happen, and obviously requires fixing the upstream libraries before I can take a dependency on parent.jar), then I'm forced to do the following in my build.gradle:The problem comes in with
checkUnusedDependencies
which will flag thatgrandparent
is an unnecessary declaration.I believe this is because the ASMDependencyAnalyzer which is utilized has a "bug" in its usage. Particularly, if you read through the implementation, it only parses classes at a single layer of hierarchy. Therefore, if will include
Parent
as being a dependency, but will not includeGrandParent
as it doesn't recursively traverse up the hierarchy.What did you want to happen?
At the moment, I'm forced to add
grandparent
as an ignored dependency incheckUnusedDependencies
even though it is really only added because of a dependency issue fromparent
.The text was updated successfully, but these errors were encountered: