I have a multiple module gradle build. I want to execute targets for one module using root. Ex :
gradle build -Pmodule=ABC
gradle jar -Pmodule=ABC
gradle test -Pmodule=ABC
gradle compileJava -Pmodule=ABC
gradle customTask -Pmodule=ABC
etc.
So every target can be run from root specifying the module. Is there a simple way to do this?
Thanks !
if (project.hasProperty('module') && module.equals('ABC')) { // execute module ABC } ...
. This is what you want to achieve?