On 31/12/2010, at 5:08 AM, StormeHawke wrote: > > Ok, so I've specified the following dependency for my war project: > > > compile 'org.springframework.security:spring-security-core:2.0.5.RELEASE' > > but when I look in my war file's lib dir, I find that I'm getting version > 3.0.3.RELEASE instead? I'm transitioning this project from an ant/maven > hybrid, and I went through and copied the exact version numbers for all > dependencies. I'm rather at a loss here.
You have declared a runtime dependency on 'org.springframework.security:spring-security-cas-client:3.0.3.RELEASE'. This depends on 'org.springframework.security:spring-security-core:3.0.3.RELEASE' So, when Gradle resolves the runtime classpath to build the war, there's a conflict as you have dependencies on both 2.0.5 and 3.0.3. Gradle chooses the version with the highest version number to include in the war. -- Adam Murdoch Gradle Developer http://www.gradle.org CTO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz
