# Using gradle to build projects with flawed component structure

**URL:** <https://discuss.gradle.org/t/using-gradle-to-build-projects-with-flawed-component-structure/17313>\
**Category:** Help/Discuss\
**Created:** [April 30, 2016, 11:31am UTC](https://discuss.gradle.org/t/using-gradle-to-build-projects-with-flawed-component-structure/17313 "2016-04-30T11:31:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karfau](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/karfau/32/938_2.png) [@karfau](https://discuss.gradle.org/u/karfau)\
**Post date:** [April 30, 2016, 11:31am UTC](https://discuss.gradle.org/t/using-gradle-to-build-projects-with-flawed-component-structure/17313/1 "2016-04-30T11:31:40Z")

</div>

Hey,

I would love to switch to gradle for a huge ActionScript codebase.  
The problem that I’m not clear about how to solve is, that there curently are some projects (directories that contain source code and test code) that contain multiple applications (things that are compiled to swf files, executable with flash player or AIR runtime).

As far as I could see the GradleFx project has no support for doing something like this, other then using a complex range of parameters for each build, which wouldn’t feel very different from how ANT is used for that codebse right now.

It doesn’t need to be discussed on what GradleFX does, or even regarding Actionscript,  
I would be happy to apply patterns that are used elsewhere, as I’m willing to invest some time to build a plugin for that even if I would need to rewrite, fork or depend on stuff that already exists in GradleFX.

Any ideas where to look for how other people in other languages have solves this?

I found this post in the old forum that might try to create something like that, if I understood correctly:

> [@Support for multiple application scripts in application plugin](https://discuss.gradle.org/t/support-for-multiple-application-scripts-in-application-plugin/508):
>
> Its a very common requirement in projects, and there should be an easy way of doing it.

Thx for any idea.
