This repository has been archived by the owner on Dec 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle.kts
97 lines (73 loc) · 3.18 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
plugins {
kotlin("jvm") version "1.6.10"
kotlin("plugin.serialization") version "1.6.10"
application
}
group = "net.developerden"
repositories {
mavenCentral()
maven("https://m2.dv8tion.net/releases")
maven("https://jitpack.io")
maven("https://jcenter.bintray.com/")
}
dependencies {
// Align versions of all Kotlin components
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2-native-mt")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.5.2-native-mt")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-reactor:1.5.2-native-mt")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.10")
implementation("com.jagrosh:jda-utilities:3.0.5")
implementation("net.dv8tion:JDA:4.4.0_351")
implementation("com.github.MinnDevelopment:jda-reactor:1.5.0")
implementation("org.apache.commons:commons-text:1.9")
implementation("org.slf4j:slf4j-api:2.0.0-alpha5")
implementation("io.ktor:ktor-client-core:1.6.7")
implementation("io.ktor:ktor-client-cio:1.6.7")
implementation("io.ktor:ktor-client-serialization:1.6.7")
implementation("ch.qos.logback:logback-core:1.3.0-alpha10")
implementation("ch.qos.logback:logback-classic:1.3.0-alpha10")
implementation("io.github.microutils:kotlin-logging:2.1.20")
implementation("io.github.classgraph:classgraph:4.8.137")
implementation("com.google.inject:guice:5.0.1")
implementation("dev.misfitlabs.kotlinguice4:kotlin-guice:1.5.0")
implementation("info.debatty:java-string-similarity:2.0.0")
implementation("io.sentry:sentry:5.4.3")
implementation("com.zaxxer:HikariCP:5.0.0")
implementation("org.jetbrains.exposed", "exposed-core", "0.31.1")
implementation("org.jetbrains.exposed", "exposed-dao", "0.31.1")
implementation("org.jetbrains.exposed", "exposed-jdbc", "0.31.1")
implementation("org.jetbrains.exposed", "exposed-java-time", "0.31.1")
implementation("mysql:mysql-connector-java:8.0.27")
implementation("com.h2database:h2:2.0.202")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5:1.6.10")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.2")
testImplementation("org.mockito.kotlin:mockito-kotlin:4.0.0")
}
application {
// Define the main class for the application.
mainClass.set("net.developerden.devdenbot.AppKt")
applicationName = "DevDenBot"
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "16"
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "16"
}
processResources {
inputs.property("version", project.version)
filesMatching("version.txt") { expand("version" to project.version) }
}
test {
useJUnitPlatform()
}
// gradle shut up thank you
compileJava { options.release.set(16) }
compileTestJava { options.release.set(16) }
}