On 15/12/2011, at 9:27 PM, prait wrote:

> Thanks for the posts 
> 
> I have a similar problem with the upgrade from MS5 to MS6. 
> In my example I have a maven repo in which i placed the following artifact: 
>> org.hibernate:hibernate-annotations:3.4.0.GA 
> 
> The pom of the artifact has a dependency init which points to: 
>> org.hibernate:hibernate-core:3.3.0.SP1 
> 
> But the artifact 'org.hibernate:hibernate-core:3.3.0.SP1' has not been
> placed into the artifactory. What has been placed there is the dependency: 
>> org.hibernate:hibernate-core:3.3.1.GA 
> 
> So if I want to execute gradle eclipse or gradle build the build fails
> because gradle does not find the dependency in the hibernate annotation pom: 
> * What went wrong: 
> Could not find group:org.hibernate, module:hibernate-core,
> version:3.3.0.SP1. 
> Required by: 
>    ch.prait.deptest:DependencyTest:1.0.0 >
> org.hibernate:hibernate-annotations:3.4.0.GA 
> 
> But if I add the right version of hibernate-core to my build file: 
>> compile('org.hibernate:hibernate-core:3.3.1.GA') 
> The build succeeds. 
> 
> This has been working in MS5 and Maven so far and it resolved automaticly
> the 3.3.1.GA Version. 

Do you have any other dependencies declared?

If org.hibernate:hibernate-annotations:3.4.0.GA is your only dependency, then I 
would consider it a bug in milestone-5 if it resolved to 
org.hibernate:hibernate-core:3.3.1.GA instead of 
org.hibernate:hibernate-core:3.3.0.SP1, and that milestone-6 has the correct 
behaviour (based on the poms in maven central, so I'm assuming you haven't 
modified them in your repository).


--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com

Reply via email to