-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (49 loc) · 1.39 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
plugins {
id'application'
id'com.github.johnrengelman.shadow' version '5.2.0'
}
def jdaVersion = '4.1.1_108'
group 'stinggy.hbot'
version '1.0-SNAPSHOT'
mainClassName = 'bot.hBotMain'
sourceCompatibility = targetCompatibility = 13
repositories {
jcenter()
mavenCentral()
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter:5.6.2"
implementation "net.dv8tion:JDA:$jdaVersion"
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.13.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.13.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-slf4j-impl', version: '2.13.0'
implementation 'org.jsoup:jsoup:1.12.1'
implementation 'org.apache.commons:commons-text:1.8'
implementation 'org.json:json:20190722'
implementation 'org.apache.httpcomponents:httpclient:4.5.10'
implementation 'org.apache.httpcomponents:httpcore:4.4.12'
}
test {
useJUnitPlatform()
}
artifacts {
shadowJar
}
jar {
manifest {
attributes 'Class-Path': '.'
}
}
shadowJar {
configurations = [project.configurations.runtimeClasspath]
}
tasks.withType(JavaCompile) {
options.compilerArgs += "--enable-preview"
}
tasks.withType(Test) {
jvmArgs += "--enable-preview"
}
tasks.withType(JavaExec) {
jvmArgs += '--enable-preview'
}
compileJava.options.encoding = 'UTF-8'