We also need this.  We have a common lib, containing some domain classes
that have Hibernate annotations (we use Envers, so XML is not currently an
option) so there are some Hibernate/JPA dependencies required for
compilation.  However, some projects that use the lib do not have databases;
they just need the domain classes without the Hibernate/JPA dependencies.

On Fri, Apr 15, 2011 at 12:07 PM, Luke Taylor
<[email protected]>wrote:

> On 15/04/2011 15:22, John Murph wrote:
> > On Thu, Apr 14, 2011 at 10:59 PM, Adam Murdoch
> > <[email protected] <mailto:[email protected]>>
> wrote:
> >
> >
> >     On 15/04/2011, at 1:59 AM, Jason Porter wrote:
> >
> >>     Has there been any work done on this issue (providedCompile
> >>     outside of war projects)?  I see Hans said this would be a 1.0
> >>     thing, and probably something to do with the publishing API rework.
> >
> >     I'm not sure we want to do this, at least not without a good use
> >     case. Do you have an example of why you want a provideCompile
> >     configuration?
> >
> >
> >
> > I'll just chime in that we also have a need for this.  It's easy enough
> > to solve (we have a "provided" custom configuration we are using), but
> > it seems common enough that Gradle should provide this right out of the
> > box.
> >
>
> We also have a "provided" configuration and it seems like a common
> requirement. Lots of project modules are compiled against the
> servlet-api, even though they aren't actually WAR files, and you don't
> want it exported as a transitive dependency.
>
> It might also help the IDEA and Eclipse plugins to set up the dependency
> scope/export information correctly.
>
> Luke.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>


-- 
Jamie Bisotti

Reply via email to