-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
111 lines (86 loc) · 2.75 KB
/
build.gradle.kts
File metadata and controls
111 lines (86 loc) · 2.75 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
99
100
101
102
103
104
105
106
107
108
109
110
111
plugins {
`java-library`
application
idea
id("com.gradleup.shadow") version "9.4.1"
}
group = "com.eternalcode"
version = "1.0.0"
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
maven {
name = "m2-dv8tion"
url = uri("https://m2.dv8tion.net/releases")
}
maven {
name = "chew"
url = uri("https://m2.chew.pro/releases")
}
maven { url = uri("https://jitpack.io") }
maven { url = uri("https://repo.eternalcode.pl/snapshots") }
maven { url = uri("https://repo.eternalcode.pl/releases") }
}
dependencies {
// JDA
implementation("net.dv8tion:JDA:6.4.1") {
exclude("opus-java", "opus-java")
}
// configs
implementation("net.dzikoysk:cdn:1.14.9")
// slf4j setup
implementation("ch.qos.logback:logback-classic:1.5.32")
// new modern fork of jda-utilities
implementation("pw.chew:jda-chewtils-command:2.2.1")
// Sentry.io integration
implementation("io.sentry:sentry:8.40.0")
// ORMLite
implementation("com.j256.ormlite:ormlite-core:6.1")
implementation("com.j256.ormlite:ormlite-jdbc:6.1")
// HikariCP
implementation("com.zaxxer:HikariCP:7.0.2")
// Database drivers
implementation("com.h2database:h2:2.4.240")
implementation("org.mariadb.jdbc:mariadb-java-client:3.5.8")
// Gson
implementation("com.google.code.gson:gson:2.14.0")
// tests
testImplementation(platform("org.junit:junit-bom:6.0.3"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
// mockwebserver
testImplementation("com.squareup.okhttp3:mockwebserver:5.3.2")
testImplementation("com.squareup.okhttp3:okhttp:5.3.2")
// mockito
testImplementation("org.mockito:mockito-core:5.23.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.23.0")
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
implementation("org.apache.commons:commons-lang3:3.20.0")
implementation("com.eternalcode:eternalcode-commons-shared:1.3.4")
implementation("dev.skywolfxp:discord-channel-html-transcript:3.0.0")
}
tasks.getByName<Test>("test") {
useJUnitPlatform()
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.isIncremental = true
options.compilerArgs.addAll(listOf("-Xlint:unchecked", "-Xlint:deprecation"))
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(21))
}
}
tasks.shadowJar {
archiveFileName.set("DiscordOfficer v${project.version}.jar")
manifest {
attributes(
"Main-Class" to "com.eternalcode.discordapp.DiscordApp",
)
}
}
application {
mainClass.set("com.eternalcode.discordapp.DiscordApp")
}