How to conf. gradle file to build module

Jack's Avatar

Jack

04 Nov, 2014 06:00 AM

Hi,

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(http://support.gradlefx.org/discussions/questions/76-gradlefx-build-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?
thx~

  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 http://doc.gradlefx.org/en/latest/basic_setup.html#defining-the-pro... 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: http://doc.gradlefx.org/en/latest/html_wrapper.html

    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: https://docs.gradle.org/3.3/userguide/build_environment.html#sec:ac...

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

Generic

? 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