Add OPENRNDR task aliases
This commit is contained in:
@@ -12,7 +12,6 @@ You will find some [basic instructions](https://guide.openrndr.org/setUpYourFirs
|
|||||||
## Gradle tasks
|
## Gradle tasks
|
||||||
- `run` runs the TemplateProgram
|
- `run` runs the TemplateProgram
|
||||||
- `jar` creates an executable platform specific jar file with all dependencies
|
- `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)
|
- `jpackageZip` creates a zip with a stand-alone executable for the current platform (works with Java 14 only)
|
||||||
|
|
||||||
## Cross builds
|
## Cross builds
|
||||||
|
|||||||
@@ -280,3 +280,20 @@ class Openrndr {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
val openrndr = 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")
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
|
openrndr.tasks=true
|
||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
org.gradle.unsafe.configuration-cache=true
|
org.gradle.unsafe.configuration-cache=true
|
||||||
Reference in New Issue
Block a user