-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
205 lines (167 loc) · 7.22 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.8.0'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.0'
id 'org.openjfx.javafxplugin' version '0.0.12'
id 'application'
id 'org.bytedeco.gradle-javacpp-platform' version "$javacppVersion"
id 'org.beryx.runtime' version '1.12.5'
}
group 'ch.bildspur'
version '3.1'
import org.gradle.internal.os.OperatingSystem
def applicationMainClass = "ch.bildspur.ledforest.Main"
def supabaseVersion = "0.9.5"
// find jvm args
def defaultJvmArgs = ''
switch (OperatingSystem.current()) {
case OperatingSystem.LINUX:
project.ext.osName = "linux"
defaultJvmArgs = "lib/LeapMotion/library/linux64"
break
case OperatingSystem.MAC_OS:
project.ext.osName = "macos"
defaultJvmArgs = "lib/LeapMotion/library/macosx"
break
case OperatingSystem.WINDOWS:
project.ext.osName = "windows"
defaultJvmArgs = "lib/LeapMotion/library/windows64"
break
}
def applicationJvmArgs = ["-Djava.library.path=$defaultJvmArgs",
"--add-opens", "javafx.graphics/com.sun.javafx.tk=ALL-UNNAMED",
"--add-opens", "javafx.graphics/javafx.stage=ALL-UNNAMED",
"--add-opens", "javafx.graphics/com.sun.javafx.tk.quantum=ALL-UNNAMED",
"--add-opens", "javafx.graphics/com.sun.javafx.application=ALL-UNNAMED",
"--add-opens", "javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
"--add-opens", "javafx.controls/com.sun.javafx.scene.control.inputmap=ALL-UNNAMED",
"--add-opens", "javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED",
"--add-opens", "javafx.graphics/com.sun.glass.ui=ALL-UNNAMED"]
wrapper {
gradleVersion = '7.4.1'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-bin.zip"
}
kotlin {
jvmToolchain(17)
}
javafx {
version = "17"
modules = ['javafx.controls', 'javafx.fxml', 'javafx.swing', 'javafx.graphics']
}
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
dependencies {
// jmetro
/*
implementation 'org.jfxtras:jmetro:11.6.15', {
exclude group: 'org.openjfx'
}*/
implementation files("lib/jmetro/jmetro-11.6.16-SNAPSHOT.jar")
// json
implementation group: 'com.google.code.gson', name: 'gson', version: '2.9.0'
implementation 'com.github.salomonbrys.kotson:kotson:2.5.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: '1.4.0'
testImplementation group: 'junit', name: 'junit', version: '4.12'
// bildspur libs
implementation "com.github.cansik:bildspur-base:0.3.6"
implementation 'com.github.cansik:bildspur-ui:0.4.6'
// implementation project(":bildspur-ui")
// processing
implementation files("lib/processing/core.jar")
implementation files("lib/processing/gluegen-rt.jar")
implementation files("lib/processing/jogl-all.jar")
// implementation 'com.github.micycle1:processing-core-4:4.0b6c'
// postfx
implementation files('lib/postfx/PostFX.jar')
// artnet
implementation 'ch.bildspur:artnet4j:0.6.2'
// illposed osc
implementation group: 'com.illposed.osc', name: 'javaosc-core', version: '0.8'
// ktmidi
/*
implementation 'dev.atsushieno:ktmidi:0.3.16'
implementation 'dev.atsushieno:ktmidi-jvm:0.3.16'
implementation 'dev.atsushieno:ktmidi-jvm-desktop:0.3.16'
*/
// web
implementation("io.ktor:ktor-server-core:2.0.2")
implementation("io.ktor:ktor-server-netty:2.0.2")
// fuel
implementation "com.github.kittinunf.fuel:fuel:2.3.1"
// the midi bus
implementation files('lib/midi/themidibus.jar')
// coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.1'
// javafx
implementation group: 'org.controlsfx', name: 'controlsfx', version: '11.1.1'
implementation group: 'com.sun.activation', name: 'javax.activation', version: '1.2.0'
// tornadofx
implementation 'no.tornado:tornadofx:1.7.20'
// icons (ikonli)
implementation 'org.kordamp.ikonli:ikonli-javafx:12.3.1'
implementation 'org.kordamp.ikonli:ikonli-bootstrapicons-pack:12.3.1'
// leap motion java
implementation files('lib/LeapMotion/library/LeapJava.jar')
implementation files('lib/LeapMotion/library/LeapMotion.jar')
// jdms
implementation group: 'org.jmdns', name: 'jmdns', version: '3.5.7'
implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.36'
// oscp5 for osc output and input
implementation files('lib/plugins/oscP5/oscP5.jar')
// peasy cam
implementation files('lib/plugins/peasycam/peasycam.jar')
// smile
implementation("com.github.haifengl:smile-kotlin:2.6.0")
// minim for audio
implementation files('lib/plugins/minim/library/minim.jar')
implementation files('lib/plugins/minim/library/jsminim.jar')
implementation files('lib/plugins/minim/library/jl1.0.1.jar')
implementation files('lib/plugins/minim/library/mp3spi1.9.5.jar')
implementation files('lib/plugins/minim/library/tritonus_aos.jar')
implementation files('lib/plugins/minim/library/tritonus_share.jar')
// deep vision
implementation 'com.github.cansik:deep-vision-processing:9eebd0c440'
// javacv & javacpp
implementation group: 'org.bytedeco', name: 'javacv', version: "$javacppVersion"
implementation group: 'org.bytedeco', name: 'opencv-platform', version: "4.4.0-$javacppVersion"
implementation group: 'org.bytedeco', name: 'openblas-platform', version: "0.3.10-$javacppVersion"
implementation group: 'org.bytedeco', name: 'ffmpeg-platform', version: "4.3.1-$javacppVersion"
// librealsense
implementation group: 'org.bytedeco', name: 'librealsense2-platform', version: "2.29.0-$javacppVersion"
implementation 'com.github.cansik:librealsense-java:0.2.1'
implementation 'com.github.cansik:realsense-processing:2.2.0'
// supabase
implementation("io.ktor:ktor-client-cio:2.1.1")
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0"
implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.4.0"
implementation("io.github.jan-tennert.supabase:gotrue-kt:$supabaseVersion")
implementation("io.github.jan-tennert.supabase:postgrest-kt:$supabaseVersion")
implementation("io.github.jan-tennert.supabase:realtime-kt:$supabaseVersion")
}
application {
mainClass = applicationMainClass
applicationDefaultJvmArgs = applicationJvmArgs
}
task fatJar(type: Jar) {
archiveBaseName = project.name + '-all'
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
doFirst {
from {
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA'
manifest {
attributes(
'Main-Class': applicationMainClass
)
}
with jar
}
runtime {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
}