GradleFx build modules

Ramesh's Avatar


22 Jul, 2013 01:22 PM


I have a requirement where in I have multiple modules (.mxml) files in my source directory along with my main module (mainClass).
Please let me know how can I build these modules and generate .swf for my modules.


apply plugin: 'gradlefx'
srcDirs = ['flex_src']
mainclass = main.mxml

I know how to build main.mxml (pasted sample above), but how can I build module1.mxml and module2.mxml into .swf

Please suggest


  1. Support Staff 1 Posted by Yennick Trevels on 26 Jul, 2013 09:01 PM

    Yennick Trevels's Avatar


    Sorry for the late response, but apparently the notifications didn't work from 19-22 July.

    As for modules, this isn't natively supported by GradleFx. I would advice to create separate projects for them though, since every project can only have one output.
    Recently someone else got his module problem fixed with some custom code, see this thread for more information about it:

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac