diff options
| author | Abe Pazos <abe@hamoid.com> | 2023-02-07 22:57:45 +0100 |
|---|---|---|
| committer | Edwin Jakobs <edwin@rndr.studio> | 2023-02-20 12:37:55 +0100 |
| commit | 01d45029e6df4390f45b20ca5ec54b438e90b7ae (patch) | |
| tree | 645d01e0ab991442a326861e6fc989d18773b108 /build.gradle.kts | |
| parent | ff1942d2a821c540d7b7d804e201c6462890f7e2 (diff) | |
| download | art-playground-openrndr-01d45029e6df4390f45b20ca5ec54b438e90b7ae.tar.gz art-playground-openrndr-01d45029e6df4390f45b20ca5ec54b438e90b7ae.zip | |
Add application gradle option to allow running custom Kt files
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 +} |
