On 28 Aug 2014, at 9:32 am, WonderCsabo <kozakcs...@gmail.com> wrote:
> On Thu, Aug 28, 2014 at 1:23 AM, Adam Murdoch [via Gradle] <[hidden email]> > wrote: > > On 28 Aug 2014, at 9:09 am, WonderCsabo <[hidden email]> wrote: > >> On LATEST: I tried LATEST with Maven 3.2.1 (almost latest stable), and it >> works currently. But it is strange that i did not found any official >> documentation on it. Maybe i just cannot use Google... I stumbled upon this >> <http://blog.sonatype.com/2009/12/maven-dependency-resolution-a-repository-perspective/#.U_5hZGM571M> >> >> >> old blog entry from Sonatype. According to this, two selectors exist, the >> LATEST, which is equal to latest.integration in Ivy, and RELEASE which is >> same as latest.release in Ivy. At least in my interpretation. > > Given that ‘latest.integration’ and ‘latest.release’ almost certainly won’t > work, we may as well map to ‘LATEST’ and ‘RELEASE’ when we can. We should > also change the pom parsing code to understand these, so we can use a > generated pom in another Gradle build. > > I am getting a little bit confused here. I thought Gradle uses the Ivy > version syntax, but understands Maven syntax, too. :S If latest.something > does not work at all in Gradle, i think that is another issue, and in that > case this version converter does not have to handle latest.something, since > it cannot get such an input currently. Gradle uses Ivy syntax internally, and in the DSL. For poms, it translates from Maven to Ivy syntax when it parses the pom and passes Ivy version strings around from there. We don’t want to start supporting ‘RELEASE’ and ‘LATEST’ for Ivy or in the Gradle DSL. So, we want to add the understanding of ‘RELEASE’ and ‘LATEST’ to the pom parsing only. > > >> >> >> On parsing: I hardly believe you do all do dependency tree calculation >> without such a class. :S But i clearly miss something. But i would gladly >> create such a class if it's really needed. > > There is a class, it’s called VersionMatcher. However, you have to parse the > string every time you want to ask a question about a selector string, instead > of parsing it once and then passing around some representation of the parsed > string. > > > OK. > > View this message in context: Re: Translating Ivy dep version syntax to Maven > in POM generation > Sent from the gradle-dev mailing list archive at Nabble.com. -- Adam Murdoch Gradle Co-founder http://www.gradle.org CTO Gradleware Inc. - Gradle Training, Support, Consulting http://www.gradleware.com