I\'m using the gradle \'application\' plugin to start my application. This works well. Now I want to add the option to start a different main class in the same project. Can I ch
You can directly configure the Application Plugin with properties:
application { mainClassName = project.findProperty("chooseMain").toString() }
And after in command line you can pass the name of the main class:
./gradlew run -PchooseMain=net.worcade.my.MainClass