IntelliJ doesn't build the modules of my application in the correct order, and not sure how to resolve it. My application consists of a Main module, a few libraries, a couple (Flex) modules, and a theme. The parts that I'm having build troubles with are
- MyFlexModule (depends on MyTheme)
- MyTheme (depends on MyLibrary)
- MyLibrary (no dependancies)
MyFlexModule uses the "Compiler Options/Styles and Themes/Theme" area of its "Build Configuration" to point to the compiled MyTheme.swc.
MyTheme uses the "Dependencies" area of its "Build Configuration" to point to the MyLibrary build configuration.
When I select "Rebuild Project", the first thing that happens is it tries to compile MyFlexModule and errors because it's unable to open MyTheme.swc. Based on my listed depencies, it should compile MyLibrary first, then MyTheme, and finally MyFlexModule. So why does it try to build MyFlexModule first?
Because of this, in order to do a full clean build, I have manually compile six IntelliJ modules (I only listed the three that are having problems, but there's a total of 6 that make up the application) in order, which is very time consuming.