-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (53 loc) · 1.52 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '8.1.1'
id 'org.mikeneck.graalvm-native-image' version '1.4.1'
}
group 'tf.bug'
version '0.1.0'
compileJava {
sourceCompatibility = 16
}
tasks.withType(JavaCompile).all {
options.compilerArgs += '--enable-preview'
}
tasks.withType(Test).all {
jvmArgs += '--enable-preview'
}
tasks.withType(JavaExec).all {
jvmArgs += '--enable-preview'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'com.discord4j:discord4j-core:3.2.7'
implementation 'org.slf4j:slf4j-simple:2.0.16'
implementation 'io.r2dbc:r2dbc-spi:1.0.0.RELEASE'
implementation 'io.r2dbc:r2dbc-postgresql:0.8.13.RELEASE'
implementation 'net.time4j:time4j-base:5.9.4'
implementation 'net.time4j:time4j-sqlxml:5.9.4'
implementation 'net.time4j:time4j-tzdata:5.0-2023d'
implementation 'net.iakovlev:timeshape:2022g.17'
implementation 'org.apache.commons:commons-text:1.13.0'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}
nativeImage {
graalVmHome = System.getProperty('java.home')
mainClass = 'tf.bug.chalkbot.ChalkBot'
executableName = 'chalkbot'
outputDirectory = file("$buildDir/bin")
arguments {
add '-J--enable-preview'
add '--initialize-at-build-time=org.slf4j.simple.SimpleLogger'
}
}
jar {
manifest {
attributes "Main-Class": "tf.bug.chalkbot.ChalkBot"
}
}
test {
useJUnitPlatform()
}