-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
41 lines (35 loc) · 861 Bytes
/
build.gradle
File metadata and controls
41 lines (35 loc) · 861 Bytes
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
plugins {
id 'java'
id 'application'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.json:json:20210307' // Use the latest version
}
// todo: include DLLs
// todo: figure out how to dynamically amend system path so that dependent DLLs can be loaded correctly
application {
mainClass = 'dev.xframes.XFramesWrapper'
applicationDefaultJvmArgs = ['-Djava.library.path=./']
// executableDir = 'custom_bin_dir'
}
sourceSets {
main {
java {
srcDir 'src'
}
}
}
task runMain(type: JavaExec) {
mainClass = 'dev.xframes.XFramesWrapper'
classpath = sourceSets.main.runtimeClasspath
args = []
jvmArgs = ['-Djava.library.path=./native']
}
jar {
manifest {
attributes 'Main-Class': 'dev.xframes.XFramesWrapper'
}
}