We will assume that we have two folders in the project, "frontend" and "backend".
In the main folder, settings.gradle must contain:
rootProject.name = 'my-project'
include ':frontend', ':backend'
In the backend folder, the build.gradle file must contain: