tag:support.gradlefx.org,2011-05-23:/discussions/questions/54-internal-swc-dependencyGradleFx: Discussion 2018-10-19T04:55:59Ztag:support.gradlefx.org,2011-05-23:Comment/264120802013-04-16T06:17:11Z2013-04-16T06:17:11ZInternal swc dependency<div><p>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.</p>
<p>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):</p>
<pre>
<code>merged files('lib/as3commons-logging.swc')</code>
</pre>
<p>You can find more information on these dependency types here:
<a href=
"http://doc.gradlefx.org/en/latest/sdk_auto_install.html#dependency-types">
http://doc.gradlefx.org/en/latest/sdk_auto_install.html#dependency-...</a></p>
<p>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: <a href=
"http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a92.html">
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c...</a><br>
For example when you look up the 'include-libraries' option it will
have this description:</p>
<blockquote>
<p>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.<br>
To link one or more classes whether or not they are used and not an
entire SWC file, use the includes option.<br>
This option is commonly used to specify resource bundles.</p>
</blockquote></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/264120802013-04-16T18:08:32Z2013-04-16T18:08:32ZInternal swc dependency<div><p>Awesome, thank you for the quick response. Using the files()
specification worked. I needed to read the gradle documentation a
little closer.</p></div>dnmcgoy