-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
39 lines (32 loc) · 901 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
plugins {
id 'java'
}
group 'dev.kiwiyou'
version '1.0-SNAPSHOT'
sourceCompatibility = 11
targetCompatibility = 11
repositories {
mavenCentral()
maven {
url 'https://m2.dv8tion.net/releases'
}
}
dependencies {
implementation group: 'net.dv8tion', name: 'JDA', version: '4.3.0_336'
implementation group: 'com.sedmelluq', name: 'lava-common', version: '1.1.2'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.1'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.8.1'
}
task buildRust(type: Exec) {
workingDir 'udp-queue'
commandLine 'cargo', 'build', '--release'
copy {
from 'udp-queue/target/release/libudp_queue.so'
into 'build/libs/'
}
}
test {
useJUnitPlatform()
dependsOn buildRust
jvmArgs += [ '-Djava.library.path=build/libs' ]
}