diff options
Diffstat (limited to '')
| -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 |
