[GRADLE-2526] GenerateEclipseWtpComponent creates multiple entries for snapshot versions Created: 23/Oct/12  Updated: 04/Jan/13  Resolved: 11/Dec/12

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

Type: Bug
Reporter: René Gröschke (Inactive) Assignee: Peter Niederwieser
Resolution: Fixed Votes: 0


 Description   

When running "gradle eclipseWtpComponent" after a library with snapshot version was updated, the library is referenced multiple times in the .settings/org.eclipse.wst.common.component file, one entry for each snapshot version in the cache.



 Comments   
Comment by Jonathan Imperial [ 18/Dec/12 ]

The snapshots are no longer duplicated when running eclipse, however the versions are still duplicated.

Comment by Peter Niederwieser [ 18/Dec/12 ]

Can you elaborate on what you mean by that, and how it can be reproduced?

Comment by Jonathan Imperial [ 18/Dec/12 ]

Nevermind, seemed to be running the wrong gradle version.

Before, we would see that if we changed a version of a non-snapshot dependency, the dependency would remain inside the deployment assembly of eclipse unless the cleanEclipse command would run out. For example:

apply plugin: 'war'
apply plugin: 'eclipse-wtp'

repositories {
        mavenCentral()
}

dependencies {
      compile 'junit:junit:4.8.1'
        // run eclipse command, comment out above line, uncomment bottom line, then rerun eclipse
//        compile 'junit:junit:4.8.2'
}

This test case would generate two junit dependencies inside the deployment assembly, but not inside the .classpath. This has been fixed in 1.4.

Generated at Wed Jun 30 12:24:21 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.