[GRADLE-1123] dependencyReport replaces older versions with later ones without noting the change Created: 17/Aug/10  Updated: 04/Jan/13  Resolved: 20/Nov/12

Status: Resolved
Project: Gradle
Affects Version/s: 0.9
Fix Version/s: 1.2-rc-1

Type: Bug
Reporter: Philip Crotwell Assignee: Unassigned
Resolution: Fixed Votes: 1


 Description   

Running gradle dependencyReport on this build.gradle produces a report that lists only the more recent version of antlr. While detecting and using the latest is very useful, part of the report is to find out what jar files are coming from where, and I think it would be better to list the older jar version, but then put a not to the side to say "overridden by 2.7.2". Without something like this it is hard to track down older dependencies that may need updating, either in the current or in dependency projects. Also, sometimes new versions can introduce new errors or incompatibilities, and a "upgraded" notation in the report might help to track down cases where it worked fine with version 1.2.3 but now breaks with 1.2.4, especially in the case where the 1.2.4 version might have come via a dependency of a dependency.

............build/reports/project/dependencies.txt
------------------------------------------------------------
Root Project
------------------------------------------------------------
archives - Configuration for the default artifacts.
compile - Classpath for compiling the sources.

-----antlr:antlr:2.7.2:default
default - Configuration the default artifacts and its dependencies.
-----antlr:antlr:2.7.2:default
runtime - Classpath for running the compiled sources.
-----antlr:antlr:2.7.2:default
testCompile - Classpath for compiling the test sources.
-----antlr:antlr:2.7.2:default
testRuntime - Classpath for running the test sources.
-----antlr:antlr:2.7.2:default

...............build.gradle
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'project-report'

group = 'edu.sc.seis'
version = '1.0'

dependencies {
compile "antlr:antlr:2.7.1"
compile "antlr:antlr:2.7.2"
}

repositories {
mavenCentral()
}

------------------------------------------------------------
Gradle 0.9-rc-1
------------------------------------------------------------

Gradle buildtime: Wednesday, 4 August 2010 8:04:33 AM EST
Groovy: 1.7.3
Ant: Apache Ant version 1.8.1 compiled on April 30 2010
Ivy: 2.2.0-rc1
Java: 1.6.0_20
JVM: 16.3-b01-279
JVM Vendor: Apple Inc.
OS Name: Mac OS X



 Comments   
Comment by Hans Dockter [ 17/Aug/10 ]

The report should definitely provide this information.

Generated at Wed Jun 30 11:47:29 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.