How to conf. gradle file to build module

Jack's Avatar


04 Nov, 2014 06:00 AM


I am a newbie in gradlefx and I have known that gradlefx do not support "module" currently. The gradlefx team suggests us to seperate projects for the modules( I'd like to know what shold be configurated to build the module project? In another word, how can I call "compc" to build my .swf file?
I mentioned this in doc. "additionalCompilerOptions [] false Additional compiler options you want to specify to the compc or mxmlc compiler. Can be like [‘-target-player=10’, ‘-strict=false’]". Seems gradlefx support compc currently?

  1. Support Staff 1 Posted by Yennick Trevels on 04 Nov, 2014 07:23 AM

    Yennick Trevels's Avatar

    GradleFx currently supports both compc (for library projects) and mxmlc (for application projects).

    The compc compiler will generate a 'swc' file. The mxmlc compiler will generate a 'swf' file. So to use the compc compiler, you'll have a swc-based project. See for defining the project type, which is an essential property for every GradleFx-based build. This defines what type of file will be generated.

    So to answer your question of "how can I call compc to build my swf file": Basically, you can't, since GradleFx will always use the mxmlc compiler to build a swf file. That's because how those compilers work, the mxmlc compiler's function is to generate swf files.

  2. 2 Posted by Jack on 04 Nov, 2014 08:05 AM

    Jack's Avatar

    Sorry for misunderstanding compc.
    thx a lot:)

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

Recent Discussions

21 Jun, 2017 06:38 AM
10 Jun, 2017 04:16 PM
24 Mar, 2017 07:10 PM
19 Mar, 2017 04:39 AM
22 Jan, 2017 07:46 AM


11 Oct, 2016 01:18 PM
20 Sep, 2016 04:36 PM
06 Sep, 2016 08:05 PM
03 Aug, 2016 11:15 AM
01 Jun, 2016 05:20 PM
03 May, 2016 09:17 PM