Hi,
I have a multi-project build with two projects:
- ProjectA with the following build.grade:
dependencies {
compile ‘org.springframework:spring-context:1.3’ }
- ProjectB with the following build.grade:
dependencies {
compile ‘org.springframework:spring-context:4.1.5.RELEASE’
compile (project(’:projectA’)) {
exclude group: ‘org.springframework’
} }
Now if I execute the Eclipse plugin I would expect that the Spring1 dependency would be removed from ProjectB leaving only Spring4. But if I open the project in Eclipse I got compile errors because the references to Spring belongs to the version 1.3.
Is there a way to exclude this dependency? Or should I approach this problem in a different way?
Thanks