-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
107 lines (93 loc) · 3.89 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
// -- change the `group` and `version` to your likings
group 'workshop.openrndr'
version '1.0-SNAPSHOT'
buildscript {
ext.kotlin_version = '1.3.31'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'application'
sourceCompatibility = 1.8
project.ext.openrndrVersion = "0.3.34-rc2"
project.ext.orxVersion = "0.0.29"
project.ext.panelVersion = "0.3.15"
repositories {
mavenLocal()
mavenCentral()
maven {
url="https://dl.bintray.com/openrndr/openrndr/"
}
maven { url 'https://jitpack.io' }
}
switch (org.gradle.internal.os.OperatingSystem.current()) {
case org.gradle.internal.os.OperatingSystem.WINDOWS:
project.ext.openrndrOS = "windows"
break
case org.gradle.internal.os.OperatingSystem.LINUX:
project.ext.openrndrOS = "linux-x64"
break
case org.gradle.internal.os.OperatingSystem.MAC_OS:
project.ext.openrndrOS = "macos"
break
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testCompile group: 'junit', name: 'junit', version: '4.12'
runtime "org.openrndr:openrndr-gl3:$openrndrVersion"
runtime "org.openrndr:openrndr-gl3-natives-$openrndrOS:$openrndrVersion"
compile "org.openrndr:openrndr-core:$openrndrVersion"
compile "org.openrndr:openrndr-svg:$openrndrVersion"
compile "org.openrndr:openrndr-animatable:$openrndrVersion"
compile "org.openrndr:openrndr-extensions:$openrndrVersion"
compile "org.openrndr:openrndr-filter:$openrndrVersion"
compile "org.openrndr:openrndr-ffmpeg:$openrndrVersion"
// replace the following with functional slf4j library when using slf4j
compile 'org.slf4j:slf4j-nop:1.7.25'
// orx (openrndr extra) https://github.com/openrndr/orx - openrndr extensions
//compile "com.github.openrndr.orx:orx-camera:v$orxVersion"
compile "com.github.openrndr.orx:orx-compositor:v$orxVersion"
//compile "org.openrndr.extra:orx-compositor:0.0.29"
//compile "com.github.openrndr.orx:orx-easing:v$orxVersion"
//compile "com.github.openrndr.orx:orx-filter-extension:v$orxVersion"
//compile "com.github.openrndr.orx:orx-file-watcher:v$orxVersion"
//compile "com.github.openrndr.orx:orx-integral-image:v$orxVersion"
//compile "com.github.openrndr.orx:orx-interval-tree:v$orxVersion"
//compile "com.github.openrndr.orx:orx-jumpflood:v$orxVersion"
//compile "com.github.openrndr.orx:orx-kdtree:v$orxVersion"
//compile "com.github.openrndr.orx:orx-mesh-generators:v$orxVersion"
//compile "com.github.openrndr.orx:orx-midi:v$orxVersion"
//compile "com.github.openrndr.orx:orx-no-clear:v$orxVersion"
compile "com.github.openrndr.orx:orx-noise:v$orxVersion"
//compile "com.github.openrndr.orx:orx-obj-loader:v$orxVersion"
// orx-olive, also add the kotlin-scripting-compiler-embeddable dependency below
compile "com.github.openrndr.orx:orx-olive:v$orxVersion"
compile "org.jetbrains.kotlin:kotlin-scripting-compiler-embeddable:1.3.31"
compile "com.github.chimbori:crux:2.0.0"
// panel https://github.com/openrndr/panel - the openrndr ui library
//compile "com.github.openrndr:openrndr-panel:v$panelVersion"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
mainClassName = "TemplateProgramKt"
if (System.properties['os.name'].toLowerCase().contains('mac')) {
applicationDefaultJvmArgs = ["-XstartOnFirstThread"]
}
ext.mainClassName = mainClassName
jar {
manifest {
attributes 'Main-Class': mainClassName
}
doFirst {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA', '**/module-info*'
archiveName 'myjar.jar'
}