diff options
| author | Edwin Jakobs <edwin@rndr.studio> | 2023-01-25 20:36:24 +0100 |
|---|---|---|
| committer | Edwin Jakobs <edwin@rndr.studio> | 2023-01-25 20:36:24 +0100 |
| commit | 091115f49a5e88d9a854bb8ac7fe13e7c2d5b8de (patch) | |
| tree | bd87825181505c6f2a9dad5327b7ab7eed95750e | |
| parent | 3b957d53e38f39d2fb3644cef9425ff3434791c4 (diff) | |
| download | art-playground-openrndr-091115f49a5e88d9a854bb8ac7fe13e7c2d5b8de.tar.gz art-playground-openrndr-091115f49a5e88d9a854bb8ac7fe13e7c2d5b8de.zip | |
Add OPENRNDR task aliases
| -rw-r--r-- | README.md | 1 | ||||
| -rw-r--r-- | build.gradle.kts | 17 | ||||
| -rw-r--r-- | gradle.properties | 1 |
3 files changed, 18 insertions, 1 deletions
@@ -12,7 +12,6 @@ You will find some [basic instructions](https://guide.openrndr.org/setUpYourFirs ## Gradle tasks - `run` runs the TemplateProgram - `jar` creates an executable platform specific jar file with all dependencies - - `zipDistribution` creates a zip file containing the application jar and the data folder - `jpackageZip` creates a zip with a stand-alone executable for the current platform (works with Java 14 only) ## Cross builds diff --git a/build.gradle.kts b/build.gradle.kts index e7da148..365c45c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -280,3 +280,20 @@ class Openrndr { } } val openrndr = Openrndr() + +if (properties["openrndr.tasks"] == "true") { + task("create executable jar for $applicationMainClass") { + group = " \uD83E\uDD8C OPENRNDR" + dependsOn("jar") + } + + task("run $applicationMainClass") { + group = " \uD83E\uDD8C OPENRNDR" + dependsOn("run") + } + + task("create standalone executable for $applicationMainClass") { + group = " \uD83E\uDD8C OPENRNDR" + dependsOn("jpackageZip") + } +}
\ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 2253c62..69020e8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,3 @@ +openrndr.tasks=true kotlin.code.style=official org.gradle.unsafe.configuration-cache=true
\ No newline at end of file |
