3

I have a subfolder api which holds multiple api related subprojects. I have included an api subproject in my settings.gradle as

include "api:invenio"
project(":api:invenio").name = 'metadata-api-invenio'

folder structure looks like this root/api/invenio/build.gradle

For some reason gradle is treating api as a subproject as well even though this is just a folder to hold subprojects. Its creating a build directory in api folder. How can I tell gradle to exclude api folder from subprojects.

Thanks

adeelmahmood
  • 2,371
  • 8
  • 36
  • 59

1 Answers1

4

Take a look at Gradle's settings.gradle for an example. Basically you can do somethings like

include 'invenio'
project(':invenio').projectDir = new File(settingsDir, 'api/invenio')
Radim
  • 4,721
  • 1
  • 22
  • 25