Module dependency through the code generation
Answered
Hi!
Probably I want something strange, but still... :)
The idea is to have some Java app that generate some part of source code for another app. I would think to create 2 modules, but have no idea how to add a dependency to execute module before build of another module. Is it possible to do it at all?
Please sign in to leave a comment.
Some maven projects already do it, there is a special generate-sources stage for them that IntelliJ IDEA can run when needed.
If your project is not Maven based, you can configure IDEA to run certain Ant/Gradle or Maven tasks before compilation automatically. These tasks can run your code in the first module which in turn will generate another code.