I don't know of any way to generate a build script from Eclipse which meets your requirements. If you're looking for something reproducible, your best bet is to use an external build tool and generate your Eclipse artifacts based on its model. I've found M2E to be the best round trip solution support both Java and Scala builds as well as mixed builds. To use this approach, you would need to use Maven as the external build technology. As an alternative option, you could generate Eclipse artifacts using some external build tool. For instance, you can use SBT and SBTEclipsify, Ant and Ant-Eclipse or Maven to generate Eclipse projects. With this approach, you would have to regenerate the projects every time the build changes. Other build tools probably provide similar functionality.

Related Query

More Query from same tag