Hi Philip,
On Sep 16, 2009, at 10:44 PM, Philip Crotwell wrote:
Hi
I wrote a quick task to test getting the version, group and name from
a dependency, but am getting a failure using this within the
samples/userguide/multiproject/dependencies/java example.
Interestingly it prints out the only dependency artifact (shared 1.0
org.gradle.sample) for the project dependency, but is then failing as
if there is a second item that is null in the default configuration.
Bug? Or am I doing something wrong?
task play << { task ->
task.project.configurations.default.files { artifact -> print
"$artifact.name ${artifact.version} ${artifact.group}" }
}
To resolve rroject dependencies they need to be build first. You can
enforce this by:
task play(dependsOn: configurations.default.buildDependencies)
{ artifact -> ... }
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email