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:)

  3. 3 Posted by Pawan on 28 Jun, 2017 05:51 AM

    Pawan's Avatar

    GradleFx is not the default plugin for Gradle builds like we have JAVA and WAR plugins we need to add the Maven dependency for plugin in build file. If not maven what is th e other way to add GradleFX plugin to use mxmlc for generating SWF files.

  4. Support Staff 4 Posted by Yennick Trevels on 28 Jun, 2017 04:49 PM

    Yennick Trevels's Avatar

    See the "Basic Setup" section of the documentation on how to setup your project. If you just need a swf (compiled with the mxmlc compiler), then you can use the 'swf' project type.

  5. 5 Posted by Pawan on 29 Jun, 2017 03:07 AM

    Pawan's Avatar

    Actually I have gone through the docs. It need maven dependency from maven central to access jar but I am not able to make connection "connection refused" secure network.Then wht is the option i will go.If add gradleFX.jar(I have this gradlefx-1.3.3.jar with me right now) in plugins folder of gradle(C:\Program Files (x86)\Gradle-3.2\lib\plugins\) will it work.Also i do not need only swf files my project requirement is to generate SWF,SWF.CACHE,HTML files

  6. Support Staff 6 Posted by Yennick Trevels on 29 Jun, 2017 07:47 PM

    Yennick Trevels's Avatar

    GradleFx has a 'createHtmlWrapper' task which you can use to generate html files that embed your generated swf. More documentation on this can be found here:

    I assume, since you mention a secure network, that you'll need to acces the web via a proxy. Gradle's documentation has a section dedicated on how to configure this:

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

07 May, 2023 04:17 PM
28 Apr, 2023 11:22 PM
23 Apr, 2023 09:43 AM
03 Nov, 2022 01:22 AM
29 Jun, 2022 05:39 PM


04 Aug, 2021 12:50 PM
15 Apr, 2021 06:10 PM
15 Jan, 2021 06:56 PM
09 Mar, 2020 11:11 PM
09 Mar, 2020 11:09 PM
17 Apr, 2019 02:51 PM