I’ve been trying to configure a multi project build but I haven’t been successful on getting everything to work the way I need it. Maybe you can help me.
My layout looks like this:
MyProduct | +--- AppProject | | | +---- AppModule1 | \---- AppModule2 | | \--- TestingProject | +---- TestModule1 \---- TestModule2
This is what I’d like to do:
By invoking gradle on MyProduct, I should be able to build everything and produce all the artifacts from all my modules.
I’m using IntelliJ IDEA and with the Gradle IDEA plugin I need to generate two separate projects: AppProject and TestingProject.
According to what I’ve read, you can only have one settings.gradle per multi project (which makes it the root project). However, based on what I’ve observed trying things out, the Gradle IDEA plugin will only generate a project file (.ipr) if the project is the root one, and the only way to make it the root one is by creating a settings.gradle file. That will mean having more than one settings.gradle
Is there a way I can have the Gradle IntelliJ IDEA pugin generate two project files (for AppProject and TestingProject) and all my product can be built invoking Gradle on MyProduct?