I have and application that have
fun main() {}
inside test/kotlin/com.company/LocalApplication.kt
I use that to run in localhost for example with IntelliJ I just do click on run that function to start my application.
what do that function inside test its generate a custom args config for localhost and after that call the real main/com.company/Application.kt
so i want to create a task for kotlin dsl gradle in the build.gradle.kts that do exactly the same that Intellij do when i click manually on run on that fun main()
for example in terminal do this:
gradle localhost
and that command call the fun main() {} inside test/kotlin/com.company/LocalApplication.kt and start my application with the localhost config.
thanks guys