Hello!

I have few days to learn gradle again. I see there is version 0.8 released
so I have migrated to it. Seems like base things are changed again.

However, I`m still having the same problems as before and gradle is still
very complicated. I`m trying to write one build.gradle file for
multi-project build with different project types. What I need currently is
to compile simple project with other projects testCompile configuration.
Gradle says "Cause: Cyclic extendsFrom from configuration 'compile' and
configuration...". So actually, in other words all I need is to use
different configuration than "compile" for java plugin cause "compile" is
already defined for other projects. code snippet:

subprojects {
usePlugin('java')
configurations {
                   compile
                   testCompile
                   sharedCompile { extendsFrom testCompile }
                }
dependencies {
                   compile (':log4j:1', ':j2ee:1', ':gwt-dev-windows:1',
':gwt-servlet:1', ':gwt-user:1')
                   testCompile (':junit:1',
':selenium-java-client-driver:1')
                }

if (artifactType.equals('shared')) { //under this I want to override compile
configuration with sharedCompile

                //exclude any files from src/test/resources
                testResourceDirNames = new LinkedList()

                configurations {
                   compile { extendsFrom sharedCompile } //There it fails of
course
                }
}

-- 
View this message in context: 
http://www.nabble.com/dependency-binding%2C-overriding-tp25802974p25802974.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