Thanks Peter, that worked although I had to make a slight modification:
ideaModule {
scopes.PROVIDED.plus += configurations.providedCompile
scopes.PROVIDED.plus += configurations.providedRuntime
scopes.COMPILE.minus += configurations.providedCompile
scopes.RUNTIME.minus += configurations.providedRuntime
}
otherwise I got the error:
Execution failed for task ':ems-adapter:ideaModule'.
Cause: No such property: resolvedConfiguration for class:
org.gradle.api.internal.file.UnionFileCollection
Regards,
Glen
On 18 August 2011 00:17, Peter Niederwieser <[email protected]> wrote:
> It's because compile extends providedCompile. You need something like this:
>
> ideaModule {
> scopes.PROVIDED.plus += configurations.providedCompile +
> configurations.providedRuntime
> scopes.COMPILE.minus += configurations.providedCompile
> scopes.RUNTIME.minus += configurations.providedRuntime
> }
>
> --
> Peter Niederwieser
> Principal Engineer, Gradleware
> http://gradleware.com
> Creator, Spock Framework
> http://spockframework.org
> Twitter: @pniederw
>
>
> Glen Stampoultzis wrote:
> >
> > Actually I may have spoken too early. I'm attempting to use this with
> the
> > war plugin.
> >
> > I added something like this:
> >
> > ideaModule {
> > scopes.PROVIDED.plus += configurations.providedCompile
> > }
> >
> > With this setup I get the libraries under the providedCompile
> > configuration
> > marked as provided however I also get a duplicate of that library marked
> > with compile scope.
> >
> > Any idea why this might be the case?
> >
>
>
> --
> View this message in context:
> http://gradle.1045684.n5.nabble.com/Idea-project-generation-and-provided-scope-tp4684287p4708399.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
>
>
>