A ready-to-go template for a Gradle-based OPENRNDR project
Clone or download
Latest commit 136703c Jan 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper Bumped to OPENRNDR 0.3.31 Dec 17, 2018
src/main/kotlin Bumped to OPENRNDR 0.3.31 Dec 17, 2018
.gitignore Initial commit Feb 20, 2018
README.md Bumped to OPENRNDR 0.3.31 Dec 17, 2018
build.gradle Bumped to OPENRNDR 0.3.31 Dec 17, 2018
gradlew Initial commit Feb 20, 2018
gradlew.bat Initial commit Feb 20, 2018
settings.gradle Bumped to OPENRNDR 0.3.31 Dec 17, 2018

README.md

OPENRNDR Gradle template

A bare-bones template for writing OPENRNDR programs. Contains Gradle project files and a minimal program example.

Intellij IDE

  • Click the run widget next to main() in the left margin/gutter of the source file.

Gradle tasks

  • run runs the template program (with the correct JVM arguments)
  • jar creates an überjar that contains the program and all its dependencies

Executable Jar

The jar file contains both the OO and FP template examples. However, typically you would only have either one of these in your project and jar file.

Command line instructions line for this example:

  • For TemplateProgram.kt
java -jar myjar.jar
 
 OR
 
java -cp myjar.jar TemplateProgramKt

On MacOS

add -XstartOnFirstThread to JVM arguments (at Run/Edit Configurations/VM Options if you're using IntelliJ Idea)