Details
-
Type:
Improvement
-
Status:
Open
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
Description
In particular, when we get the classpath for a EclipseProject we essentially get a list of jars, but no information on the 'origin' of the jar.
There are many bits of potentially useful information such as the info that was used in resolving it (group artfecat id etc.).
However, the most pressing at the moment is that to implement proper WTP support for the Gradle Classpath container I need to be able to determine the type(configuration?) of dependency as in 'compile', 'test', 'providedCompile' etc.
This is important because this info is needed to properly configure the WTP deployment assembly and exclude some dependencies from it (test and provided)
If this isn't done properly then the web application will not run properly on the server because of class loader errors.
So what is needed is a way to distinguish the jars based on configuration-type (compile, test, ...).
A possible solution would be to add a method to
org.gradle.tooling.model.Dependency
or
org.gradle.tooling.model.ExternalDependency
to determine this.
Denis from JetBrains team also wanted a similar feature for the IDEA plugin. He was interested mostly in the group/name/version