tag:support.gradlefx.org,2011-05-23:/discussions/questions/3420-how-can-i-include-external-sourceGradleFx: Discussion 2018-10-19T04:56:01Ztag:support.gradlefx.org,2011-05-23:Comment/350362622014-10-22T23:01:07Z2014-10-22T23:02:38ZHow can i include external source?<div><p>The answer to this is not directly related to gradle, but more
to the Flex compiler. If you use <code>dependencies</code> you're
inherently referencing a library. The <a href=
"https://gradlefx.readthedocs.org/en/latest/dependency_management.html">
dependency scopes</a> we use for GradleFx all translate to a Flex
compiler flag that only expects a swc.</p>
<p>So your only option is to consider these files sources and
configure them as such:<br></p>
<pre>
<code>srcDirs = [‘project1/src/’, 'lib/src' ]</code>
</pre>
You can't use absolute paths here however.
<p>To tell you the truth, I don't really understand why you don't
want to compile the library into - well - a library artifact (a
swc). It would make this much easier and logical. Have a look at
our multi-project <a href=
"https://github.com/GradleFx/GradleFx-Examples/blob/master/multiproject-all-conventions/client/build.gradle">
examples</a> on GitHub.</p></div>Maxime Coweztag:support.gradlefx.org,2011-05-23:Comment/350362622014-10-23T06:23:57Z2014-10-23T06:23:57ZHow can i include external source?<div><p>I would recommend to follow Maxime's answer, but if that isn't
an option or doesn't solve your specific issue then there's also
the includeSources property:</p>
<pre>
<code>includeSources = [...]</code>
</pre>
<p>This is similar to the include-sources compiler option, for
which you can find the explanation here: <a href=
"http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7a80.html">
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c...</a></p></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/350362622014-10-23T08:05:36Z2014-10-23T08:05:39ZHow can i include external source?<div><p>Thanks!</p></div>Alessandro