Hi all,

I'm trying to convert my multi-project Ant build to Gradle. I have a flat
project structure, every subproject is a sibling of the master build
project.

i.e.

- flight-build (this is the master)
- flight-common
- flight-dao
- flight-service

When I run a build from the master, it correctly builds the subprojects.
When I run a build from a subproject directory, it fails with the following
error:

Cause: Could not find method compile() for arguments
[com.mahanaroad:mahana-i18n:1.0] on root project 'flight-common'.

If I rearrange to a hierarchical build, it works fine.

My settings.gradle file in the master directory looks like this:


includeFlat 'flight-common',  'flight-dao', etc.


Is there a way to configure a flat multi-project build to allow building of
subprojects or is this a missing feature?

Thanks,
Kevin

Reply via email to