So my project has a Main.kt
file in the sources root.
And there is another Main.kt
file in a samples folder for a Sample:
+
|-src
|- commonMain
|- kotlin
| |- Main.kt
|- Samples
|- InputSample
|- Main.kt
How do I add a gradle task (kotlin dsl or groovy, at least I need the idea) that is called InputSample
for example und runs the Main.kt from thee InputSample
folder?
EDIT:
I think its something like this in groovy gradle dsl but I dont know how to convert it:
task app2StartScript(type:CreateStartScripts) {
applicationName = 'app2'
classpath = jar.outputs.files
mainClassName = 'com.example.AppMain2'
outputDir = file('build/bin')
}