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


Reply via email to