-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (53 loc) · 1.56 KB
/
build.gradle
File metadata and controls
68 lines (53 loc) · 1.56 KB
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
apply from: "GradleCommon/common.gradle"
apply plugin: "application"
mainClassName = "dev.aura.aurabot.BotMain"
applicationDefaultJvmArgs = ["-Dlog4j.skipJansi=false"]
ext {
commonManifest = {
attributes(
"Main-Class": mainClassName,
"Specification-Title": pluginName,
"Specification-Version": version,
"Specification-Vendor": "Aura Development Team",
"Implementation-Title": pluginName,
"Implementation-Version": version,
"Implementation-Vendor": "Aura Development Team"
)
}
runDir = "run"
}
repositories {
// Additional repositories
}
dependencies {
compile "net.dv8tion:JDA:${jda_version}"
compile "com.jagrosh:jda-utilities-command:${jdaUtilitiesCommand_version}"
compile "com.lmax:disruptor:${disruptor_version}"
compile "commons-cli:commons-cli:${commonsCLI_version}"
compile "org.apache.logging.log4j:log4j-core:${log4j_version}"
compile "org.fusesource.jansi:jansi:${jansi_version}"
runtime "org.apache.logging.log4j:log4j-slf4j-impl:${log4j_version}"
}
tasks.withType(Jar) {
manifest commonManifest
}
test {
workingDir = runDir
systemProperty "log4j.skipJansi", "true"
doFirst {
file(workingDir).mkdirs()
}
}
run {
workingDir = runDir
if(project.hasProperty("args")) {
args project.args.split()
}
doFirst {
file(workingDir).mkdirs()
}
}
artifacts {
archives distZip
archives distTar
}