dependencies in extended configs blocking dependencies in other configs

View: New views
2 Messages — Rating Filter:   Alert me  

dependencies in extended configs blocking dependencies in other configs

by Steve Ebersole :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

There seems to be a problem with a dependency in one configuration
"blocking" a dependency in another extended configuration when the
group, name and version are all the same.  In my particular case one has
a classifier associated with it:

http://www.pastie.org/693336

compile (
    this.project(':hibernate-core').sourceSets.main.runtimeClasspath,
    [group: 'org.infinispan', name: 'infinispan-core', version: infinispanVersion]
)
testCompile(
    this.project(':hibernate-testing').sourceSets.main.runtimeClasspath,
    [group: 'org.infinispan', name: 'infinispan-core', version: infinispanVersion, classifier: 'tests']
)

When I try to perform compileTestJava I get compilation errors because
the compiler cannot see stuff from "org.infinispan:infinispan-core".  It
does find them if I comment out the classified dep from testCompile (of
course then it cannot find those classes).

Am I doing something wrong?  If not, is this a known issue?

--
Steve Ebersole <steve@...>
Hibernate.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: dependencies in extended configs blocking dependencies in other configs

by Steve Ebersole :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think this may be related to
http://jira.codehaus.org/browse/GRADLE-739


On Wed, 2009-11-11 at 11:24 -0600, Steve Ebersole wrote:

> There seems to be a problem with a dependency in one configuration
> "blocking" a dependency in another extended configuration when the
> group, name and version are all the same.  In my particular case one has
> a classifier associated with it:
>
> http://www.pastie.org/693336
>
> compile (
>     this.project(':hibernate-core').sourceSets.main.runtimeClasspath,
>     [group: 'org.infinispan', name: 'infinispan-core', version: infinispanVersion]
> )
> testCompile(
>     this.project(':hibernate-testing').sourceSets.main.runtimeClasspath,
>     [group: 'org.infinispan', name: 'infinispan-core', version: infinispanVersion, classifier: 'tests']
> )
>
> When I try to perform compileTestJava I get compilation errors because
> the compiler cannot see stuff from "org.infinispan:infinispan-core".  It
> does find them if I comment out the classified dep from testCompile (of
> course then it cannot find those classes).
>
> Am I doing something wrong?  If not, is this a known issue?
>
--
Steve Ebersole <steve@...>
Hibernate.org


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email