Resolving transitive dependencies with non-standard packaging types

I have seen and the relevant code -

Is there a way to add to this list without delving into internal classes? I know i can use the notation @jar when defining a dependency to pull it, the problem i have is i need the transitive dependencies so i added transitive = true which resolves my dependencies however it also resolves other dependencies with these custom packaging types and i only want the jar artifact if i find a dependency with the custom type.