Internal swc dependency

dnmcgoy's Avatar


16 Apr, 2013 12:38 AM

Gradle/GradleFx newbie question, but I have a swc that is in a lib directory in my project that I need included in my build process.
The documentation says :
internal: The dependency content will be merged in the SWC/SWF. Same as -compiler.include-libraries

What do you mean by "Same as -compile.include-libraries"? This option in the compile flag just points at a file name, but
the dependency examples list things with group names and class names, but not a location in the file structure.

Thanks for any help you can provide.

  1. Support Staff 1 Posted by Yennick Trevels on 16 Apr, 2013 06:17 AM

    Yennick Trevels's Avatar

    You are mixing two things up here, one being how you specify the location of your dependency and the other how Flex will link the dependency.

    With Gradle/GradleFx you can specify the location of your dependencies in multiple ways. One of them is file-based, like this (ignore the 'merged' here for a while):

    merged files('lib/as3commons-logging.swc')

    You can find more information on these dependency types here:

    Then you also have the ways how the Flex compiler (which is used by GradleFx) will link your library into the artifact of your project. You can look up those compiler options here:
    For example when you look up the 'include-libraries' option it will have this description:

    Links all classes inside a SWC file to the resulting application SWF file, regardless of whether or not they are used. Contrast this option with the library-path option that includes only those classes that are referenced at compile time.
    To link one or more classes whether or not they are used and not an entire SWC file, use the includes option.
    This option is commonly used to specify resource bundles.

  2. 2 Posted by dnmcgoy on 16 Apr, 2013 06:08 PM

    dnmcgoy's Avatar

    Awesome, thank you for the quick response. Using the files() specification worked. I needed to read the gradle documentation a little closer.

  3. Yennick Trevels closed this discussion on 16 Apr, 2013 06:12 PM.

Comments are currently closed for this discussion. You can start a new one.

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