-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
98 lines (81 loc) · 3.08 KB
/
build.gradle.kts
File metadata and controls
98 lines (81 loc) · 3.08 KB
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
plugins {
java
id("org.springframework.boot") version "4.0.1"
id("io.spring.dependency-management") version "1.1.7"
}
group = "io.github.aquerr"
version = "1.0-SNAPSHOT"
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
configurations {
compileOnly {
extendsFrom(configurations.annotationProcessor.get())
}
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
repositories {
mavenCentral()
maven {
url = uri("https://jitpack.io")
}
maven {
url = uri("https://m2.dv8tion.net/releases")
}
maven {
url = uri("https://maven.lavalink.dev/releases")
}
}
val jsonVersion = findProperty("jsonVersion") as String
val typeSafeConfigVersion = findProperty("typeSafeConfigVersion") as String
val jsonPathVersion = findProperty("jsonPathVersion") as String
val jdaVersion = findProperty("jdaVersion") as String
val lavaPlayerVersion = findProperty("lavaPlayerVersion") as String
val guavaVersion = findProperty("guavaVersion") as String
val youtubeSourceVersion = findProperty("youtubeSourceVersion") as String
dependencies {
// Spring
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
implementation("org.springframework.boot:spring-boot-starter-quartz")
implementation("org.springframework.boot:spring-boot-starter-webmvc")
// DSC Audio START
implementation("club.minnced:jdave-api:0.1.5")
implementation("club.minnced:jdave-native-linux-x86-64:0.1.5")
implementation("club.minnced:jdave-native-linux-aarch64:0.1.5")
implementation("club.minnced:jdave-native-win-x86-64:0.1.5")
implementation("club.minnced:jdave-native-darwin:0.1.5")
// DSC Audio END
implementation("dev.arbjerg:lavaplayer:${lavaPlayerVersion}")
implementation("net.dv8tion:JDA:${jdaVersion}") {
exclude("opus-java")
}
implementation("dev.lavalink.youtube:common:${youtubeSourceVersion}")
implementation("org.json:json:${jsonVersion}")
implementation("com.typesafe:config:${typeSafeConfigVersion}")
implementation("com.jayway.jsonpath:json-path:${jsonPathVersion}")
implementation("com.google.guava:guava:${guavaVersion}")
// Logging (Log4j2)
implementation("org.springframework.boot:spring-boot-starter-log4j2")
modules {
module("org.springframework.boot:spring-boot-starter-logging") {
replacedBy("org.springframework.boot:spring-boot-starter-log4j2", "Use Log4j2 instead of Logback")
}
}
// Database (H2)
runtimeOnly("com.h2database:h2")
compileOnly("org.projectlombok:lombok")
// Tests
testImplementation("org.springframework.boot:spring-boot-data-jpa-test")
testImplementation("org.springframework.boot:spring-boot-starter-quartz-test")
testImplementation("org.springframework.boot:spring-boot-starter-webmvc-test")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
annotationProcessor("org.projectlombok:lombok")
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
}
tasks.withType<Test> {
useJUnitPlatform()
}