diff options
Diffstat (limited to '')
| -rw-r--r-- | build.gradle.kts | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index a5bc8fd..62982b3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -139,6 +139,13 @@ tasks.withType<KotlinCompile> { // ------------------------------------------------------------------------------------------------------------------ // project.setProperty("mainClassName", applicationMainClass) + +application { + if (hasProperty("application")) { + mainClass.set("${property("application")}Kt") + } +} + tasks { named<ShadowJar>("shadowJar") { manifest { @@ -297,4 +304,4 @@ if (properties["openrndr.tasks"] == "true") { group = " \uD83E\uDD8C OPENRNDR" dependsOn("jpackageZip") } -}
\ No newline at end of file +} |
