Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gradle creating build directory in subfolder

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

like image 632
adeelmahmood Avatar asked Dec 03 '25 15:12

adeelmahmood


1 Answers

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')
like image 160
Radim Avatar answered Dec 05 '25 10:12

Radim



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!