[GRADLE-2016] Incorrect generation of org.eclipse.wst.common.component with multi-projects and transitive dependencies Created: 27/Dec/11  Updated: 25/Jan/17  Resolved: 03/Jun/16

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-milestone-6
Fix Version/s: 3.0-milestone-1, 3.0-rc-2

Type: Bug
Reporter: Klaus Lehner Assignee: Donát Csikós
Resolution: Fixed Votes: 3


Following project structure:


spm-gwt is a module, spm-server is a webserver project.

spm-gwt has a dependency to module A, version 1.2
spm-server has a dependency to module A, version 1.1

When generating org.eclipse.wst.common.component, both versions of module A are included, and thus both files are copied to the web-inf/lib directory.

Actually, conflict resolution doesn't work correctly here, as the generated file fetches all libraries directly from module A.

Probably it would be better to not transitively include all those libraries, but instead use the runtime configuration of spm-server and add all those libraries to the org.eclipse.wst.common.component file.

Comment by Donát Csikós [ 01/Jun/16 ]

This is fixed in the codebase. @klehner can you please evaluate the latest snapshot?

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