This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
74 lines (58 loc) · 1.63 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
65
66
67
68
69
70
71
72
73
74
plugins {
id("java")
id("checkstyle")
id("org.springframework.boot") version "3.1.4"
}
apply(plugin = "io.spring.dependency-management")
group = "de.efi23a"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
// Lombok
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
// JetBrains Annotations
compileOnly("org.jetbrains:annotations:24.0.1")
// Spring
implementation("org.springframework.boot:spring-boot-starter")
// JDA
implementation("net.dv8tion:JDA:5.0.0-beta.13")
// Checkstyle
checkstyle("com.puppycrawl.tools:checkstyle:10.12.3")
// JUnit 5
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
// MongoDB
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
testImplementation("org.springframework.boot:spring-boot-starter-test")
// RESTful, Web
implementation("org.springframework.boot:spring-boot-starter-web")
testImplementation("org.springframework.boot:spring-boot-starter-test")
// Jakarta Mail
implementation("jakarta.mail:jakarta.mail-api:2.1.2")
implementation("org.eclipse.angus:jakarta.mail:2.0.2")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
springBoot {
mainClass.set("de.efi23a.bot.BotApplication")
}
checkstyle {
isIgnoreFailures = false
maxWarnings = 0
maxErrors = 0
}
tasks {
bootJar {
archiveVersion = ""
}
build {
dependsOn("check")
}
test {
useJUnitPlatform()
}
}