Hi,
you have to put your list of dependencies in the dependencies closure:
---------------
dependencies{
compile name: 'struts2-core'
}
---------------
see
http://gradle.org/0.9-rc-1/docs/userguide/userguide_single.html#sec:how_to_declare_your_dependencies
for details
regards,
René
Am Fr, 24.09.2010, 20:29, schrieb dwschulze:
>
> Thanks, Rene.
>
>
> Gradle doesn't pick up my libraries, though, so it still throws compiler
> errors.
>
> When I add the line
>
>
> compile name: 'struts2-core'
>
> to the repositories it throws an exception:
>
> Cause: Could not find method compile() for arguments
> [{name=struts2-core}]
> on root project 'StrutsHelloWorld'.
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/Example-or-tutorial-of-migrating-from
> -Ant-to-Gradle-tp2852129p2853096.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
>
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email