Browse Source

Add OPENRNDR task aliases

master
Edwin Jakobs 2 years ago
parent
commit
091115f49a
  1. 1
      README.md
  2. 17
      build.gradle.kts
  3. 1
      gradle.properties

1
README.md

@ -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

17
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")
}
}

1
gradle.properties

@ -1,2 +1,3 @@
openrndr.tasks=true
kotlin.code.style=official
org.gradle.unsafe.configuration-cache=true
Loading…
Cancel
Save