We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e435d6 commit afad1bbCopy full SHA for afad1bb
orb-kotlin-example/build.gradle.kts
@@ -8,5 +8,12 @@ dependencies {
8
}
9
10
application {
11
- mainClass = "com.withorb.api.example.MainKt"
+ // Use `./gradlew :orb-kotlin-example:run` to run `Main`
12
+ // Use `./gradlew :orb-kotlin-example:run -Dexample=Something` to run `SomethingExample`
13
+ mainClass = "com.withorb.api.example.${
14
+ if (project.hasProperty("example"))
15
+ "${project.property("example")}ExampleKt"
16
+ else
17
+ "MainKt"
18
+ }"
19
0 commit comments