Hi all,

My current setup is a plain folder structure with three projects: projectA,
projectB and master. My settings.gradle file contains this:

includeFlat 'projectA', 'projectB'

I have included in master/build.gradle the following new task:

subprojects {

usePlugin('java')

    task 'genlib'(description: 'Copies the 3rd party libraries to /genlib',
dependsOn: configurations.compile) << {
        print "(for debug only) ==>" + configurations.compile.files
        copy {
            into "${projectDir}/src/main/genlib"
            from configurations.compile.files
        }
    }

}

I have specified a different set of dependencies in projectB and projectA

If I execute this:

cd projectA
gradle -i genlib

I get the dependencies of projectB instead of projectA!! If I remove
projectB from settings.gradle it works as expected. Am I missing something?

Regards,

Nacho.

Reply via email to