Hi! When I run programs from Idea I can click the green triangle next to any main() method to run that specific file. There are also keyboard shortcuts for this.
Is there a way to specify which Kotlin file to run when using ./gradlew run? In my case I have over a hundred main methods to generate various visual experiments and it would be nice to be able to launch them from the command line.
If you have a run task, I guess you applied the application plugin.
So configure the application plugin with the main class you want like documented, e.g.