On Sun, Jan 31, 2010 at 7:26 PM, Phil Messenger <[email protected]> wrote:
> > Hi, > > I'm writing YAGP (yet another gradle plugin), and I need to deduce the > actual resolved version number of a dependency. If I call getVersion() on a > ResolvedDependency, I get the version as defined in the build script: > > eg. com.foo:bar:[1.0.1,2.0.0) return version [1.0.1,2.0.0) > > What I want is the actual version of com.foo:bar that has been resolved eg. > 1.0.43 > > Is there any way of doing this, or should I look at adding a patch to make > this happen? > There is a way of doing this. A configuration returns a ResolvedConfiguration which returns ResolvedArtifacts which have an associated ResolvedDependency containing the actual version. Accessing this information will become more convenient in future versions,. - Hans -- Hans Dockter Founder, Gradle http://www.gradle.org, http://twitter.com/gradleorg CEO, Gradle Inc. - Gradle Training, Support, Consulting http://www.gradle.biz > Phil. > -- > View this message in context: > http://old.nabble.com/getting-the-actual-resovled-version-tp27395197p27395197.html > Sent from the gradle-user mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > >
