Resolving transitive dependencies with non-standard packaging types


(Iain Adams) #1

I have seen https://issues.gradle.org/browse/GRADLE-2285 and the relevant code - https://github.com/gradle/gradle/blob/f001402c8b7f404c923d972f1bc524b2de7b3fcd/subprojects/dependency-management/src/main/java/org/gradle/internal/component/external/model/DefaultMavenModuleResolveMetadata.java#L27

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.