Let Application plugin support multiple applications in a project

Currently when we specify:

mainClassName = “com.mycompany.MyProgram”

and run ‘gradle installApp’, it creates a jarfile under ‘lib’, and launches the CreateStartScripts task to create launcher scripts for that main function.

It’s common in java projects to have multiple classes with main functions.

Suppose mainClassName could accept a list of values… then gradle could build one jarfile, and launch CreateStartScripts once per main function. You could then easily create one distribution containing multiple applications.

Does that seem useful and/or appropriate?

It is a very common requirement in many projects. It would be good to have out of the box support for this feature.