This repository has been archived by the owner on Oct 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
59 lines (47 loc) · 1.59 KB
/
build.gradle.kts
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
import org.apache.tools.ant.taskdefs.condition.Os
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
}
group = "gg.mixtape"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://m2.dv8tion.net/releases")
maven("https://dimensional.jfrog.io/artifactory/maven")
maven("https://oss.sonatype.org/content/repositories/snapshots")
maven("https://jitpack.io")
mavenLocal()
}
dependencies {
testImplementation("com.github.walkyst:lavaplayer-fork:1.3.97") {
exclude(group = "com.sedmelluq", module = "lavaplayer-natives")
}
testImplementation("ch.qos.logback:logback-classic:1.2.11")
testImplementation("dev.kord:kord-core:0.8.0-M11")
testImplementation("com.github.natanbc:lavadsp:0.7.7")
testImplementation("com.github.natanbc:native-loader:0.7.2")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
Toolchains.ALL.forEach { toolchain ->
tasks.register<Exec>("compileRust${toolchain.name}") {
commandLine = listOf("cargo", "build", "--release", "--target", toolchain.rustTarget)
/* deploy the native files */
copy {
from("build/rust/${toolchain.buildPath}")
into("src/main/resources/${toolchain.destFolder}")
}
}
/*tasks.register<Copy>("deployRust${toolchain.name}") {
copy {
from("build/rust/${toolchain.buildPath}")
into("src/main/resources/${toolchain.destFolder}")
}
}*/
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}