This repository has been archived by the owner on Sep 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
79 lines (68 loc) · 2.23 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import org.gradle.internal.os.OperatingSystem
group 'org.openrndr.examples'
version '0.4-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.3.31'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
ext.rndr_version = '0.3.33'
ext.panel_version = '0.3.13'
ext.slf4j_version = '1.7.25'
ext.coroutines_version = '1.0.0'
ext.rndr_gl3_natives = ""
ext.orx_version = "0.0.24"
switch (OperatingSystem.current()) {
case OperatingSystem.WINDOWS:
ext.rndr_gl3_natives = "openrndr-gl3-natives-windows"
break
case OperatingSystem.MAC_OS:
ext.rndr_gl3_natives = "openrndr-gl3-natives-macos"
break
case OperatingSystem.LINUX:
ext.rndr_gl3_natives = "openrndr-gl3-natives-linux-x64"
break
}
allprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = 'ExampleKt'
applicationDefaultJvmArgs = ["-XstartOnFirstThread"]
tasks.run.workingDir = new File('.').absolutePath
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url = "https://dl.bintray.com/openrndr/openrndr/"
}
maven { url 'https://jitpack.io' }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
compile "org.openrndr:openrndr-core:$rndr_version"
compile "org.openrndr:openrndr-animatable:$rndr_version"
compile "org.openrndr:openrndr-svg:$rndr_version"
compile "org.openrndr:openrndr-extensions:$rndr_version"
runtime "org.openrndr:openrndr-gl3:$rndr_version"
runtime "org.openrndr:$rndr_gl3_natives:$rndr_version"
compile 'org.slf4j:slf4j-nop:1.7.25'
implementation "com.github.openrndr:openrndr-panel:v$panel_version"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile group: 'junit', name: 'junit', version: '4.12'
}