Ah, that fixed it.
thanks,
Philip
On Mon, May 16, 2011 at 3:30 PM, Adam Murdoch
<[email protected]> wrote:
>
> On 17/05/2011, at 2:45 AM, Philip Crotwell wrote:
>
> Hi
>
> Is exclude supposed to work for project dependencies within
> multiprojects? For example I have:
>
> dependencies {
> compile project(':fissuresUtil') {
> transitive = true
> exclude module:'foo'
> }
> }
>
> But I get an error:
>
> I think Groovy interprets this as
> dependencies {
> compile ( project('...') { ... } )
> }
> ie configure the project then create a dependency.
> You need to do this, instead:
> dependencies {
> compile(project(':...')) { ... }
> }
> ie add and then configure a dependency
>
>
> A problem occurred evaluating project ':cormorant'.
> Cause: Could not find method exclude() for arguments [{module=foo}] on
> project ':fissuresUtil'.
>
> I checked the javadocs at gradle.org and a ProjectDependency does have
> an exclude method. Strange...
>
> thanks,
> Philip
>
> gradle --version
>
> ------------------------------------------------------------
> Gradle 1.0-milestone-3
> ------------------------------------------------------------
>
> Gradle build time: Monday, 25 April 2011 5:40:11 PM EST
> Groovy: 1.7.10
> Ant: Apache Ant(TM) version 1.8.2 compiled on December 20 2010
> Ivy: 2.2.0
> JVM: 1.6.0_24 (Apple Inc. 19.1-b02-334)
> OS: Mac OS X 10.6.7 i386
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
> --
> Adam Murdoch
> Gradle Co-founder
> http://www.gradle.org
> VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
> http://www.gradleware.com
>
>
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email