tag:support.gradlefx.org,2011-05-23:/discussions/questions/14-can-swf-project-add-modules-as-flashbuilder-project-doGradleFx: Discussion 2013-03-22T22:02:19Ztag:support.gradlefx.org,2011-05-23:Comment/166748662012-06-15T08:18:48Z2012-06-15T08:18:48ZCan swf project add modules as flashbuilder project do?<div><p>You raise a good question. I must admit I haven't thought of
modules when creating the 'flashbuilder' plugin. So those 'module'
tags will definitely not be generated there.</p>
<p>As for the core gradlefx functionality: Yennick will have to
confirm this, but I don't think there is a convention property to
support this. Of course you can do anything you want with the
<code>additionalCompilerOptions</code>.</p>
<p>At first glance, this seems to be related to optimizing modules
for the main application. More information on that topic can be
found here: <a href=
"http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7d1f.html#WSda78ed3a750d6b8f-f563a6123772cd345-8000">
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c...</a></p></div>Maxime Coweztag:support.gradlefx.org,2011-05-23:Comment/166748662012-06-15T08:34:39Z2012-06-15T08:35:22ZCan swf project add modules as flashbuilder project do?<div><p>I've given it some thought. I think we'll have to introduce a
<code>module</code> dependency scope. But if we want to be able to
do the optimization, this can only be done with project
dependencies, not precompiled artifacts.</p>
<p>I've created an issue to put it on the wishlist: <a href=
"https://github.com/GradleFx/GradleFx/issues/46">https://github.com/GradleFx/GradleFx/issues/46</a></p>
<p>It's worth investigating how FlexMojos handles this, if it
does.</p></div>Maxime Coweztag:support.gradlefx.org,2011-05-23:Comment/166748662012-06-15T09:52:42Z2012-06-15T09:52:42ZCan swf project add modules as flashbuilder project do?<div><p>I have tried -link-report and -load-externs, but the result was
not I ecpected.</p></div>cwocwotag:support.gradlefx.org,2011-05-23:Comment/166748662012-06-15T11:18:34Z2012-06-15T11:18:34ZCan swf project add modules as flashbuilder project do?<div><p>Can you elaborate on what you've tried? And what the results or
possible errors were?</p></div>Maxime Coweztag:support.gradlefx.org,2011-05-23:Comment/166748662012-06-17T18:21:25Z2012-06-17T18:21:25ZCan swf project add modules as flashbuilder project do?<div><p>I have to be honest that I haven't used flex modules yet, so I
don't know whether it's possible with GradleFx. So I'll see whether
I can put a sample project together. I'll probably look at how it's
done in FlexMojos, so I'm going to follow this post <a href=
"http://www.adobe.com/es/devnet/flex/articles/flex-maven-flexmojos-pt3.html">
http://www.adobe.com/es/devnet/flex/articles/flex-maven-flexmojos-p...</a>
:)</p></div>Yennick Trevelstag:support.gradlefx.org,2011-05-23:Comment/166748662012-06-18T12:32:21Z2012-06-18T12:32:21ZCan swf project add modules as flashbuilder project do?<div><p>Basically, the trick seems to consist of publishing the module's
generated link-report as an artifact and then using that as an
additional dependency in the main application build script.</p></div>Maxime Cowez