-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
44 lines (36 loc) · 925 Bytes
/
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
plugins {
id 'java'
id 'application'
}
group 'de.danx0'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.12
repositories {
mavenCentral()
}
application {
mainClassName = 'de.danx0.WDLoader.Controller'
executableDir = 'custom_bin_dir'
}
jar {
manifest {
attributes 'Main-Class': 'de.danx0.WDLoader.Controller'
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
//compile group: 'org.json', name: 'json', version: '20190722'
//implementation 'org.json:json:20190722'
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
//compile group: 'org.json', name: 'json', version: '20190722'
}
ext.moduleName = 'WDLoader.main'
compileJava {
inputs.property('moduleName', moduleName)
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath
]
classpath = files()
}
}