forked from freyacodes/ukulele
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (55 loc) · 2.15 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
60
61
62
63
64
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.springframework.boot.gradle.tasks.bundling.BootJar
plugins {
id("org.springframework.boot") version "2.3.5.RELEASE"
id("io.spring.dependency-management") version "1.0.10.RELEASE"
kotlin("jvm") version "1.4.10"
kotlin("plugin.spring") version "1.4.10"
}
group = "dev.arbjerg"
version = "0.1"
java.sourceCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
maven { url = uri("https://m2.dv8tion.net/releases") }
maven { url = uri("https://jitpack.io") }
}
dependencies {
// The 4.x version of JDA specifically needs a UDP fix from this commit:
// https://github.com/DV8FromTheWorld/JDA/commit/39ba0c2682ad99dbec88240cb8ea9d1ff7162ae9
// The snapshot version published in jitpack has this, so it is utilized for now.
// Eventually, a full upgrade to JDA 5.x will be necessary.
implementation("com.github.DV8FromTheWorld:JDA:legacy~v4-SNAPSHOT")
implementation("dev.arbjerg:lavaplayer:1.5.0")
implementation("org.springframework.boot:spring-boot-starter-data-r2dbc")
runtimeOnly("com.h2database:h2")
implementation("io.r2dbc:r2dbc-h2")
implementation("org.flywaydb:flyway-core")
implementation("com.github.ben-manes.caffeine:caffeine:3.1.5")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.4.0")
implementation("io.projectreactor.kotlin:reactor-kotlin-extensions")
testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude(group = "org.junit.vintage", module = "junit-vintage-engine")
}
}
tasks.withType<BootJar> {
archiveFileName.set("ukulele.jar")
doLast {
//copies the jar into a place where the Dockerfile can find it easily (and users maybe too)
copy {
from("build/libs/ukulele.jar")
into(".")
}
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "11"
}
}