-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (51 loc) · 1.68 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.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.kotlin)
alias(libs.plugins.shadow)
alias(libs.plugins.sqldelight)
application
}
group = "com.russellbanks"
version = "3.0.0"
repositories {
mavenCentral()
maven("https://s01.oss.sonatype.org/content/repositories/snapshots")
}
dependencies {
// Kord Extensions - https://github.com/Kord-Extensions/kord-extensions
implementation(libs.kordextensions.kordextensions)
implementation(libs.kordextensions.unsafe)
// KordX.Emoji - https://github.com/kordlib/kordx.emoji
implementation (libs.kordx.emoji)
// KotlinX Coroutines - https://github.com/Kotlin/kotlinx.coroutines
implementation(libs.kotlinx.coroutines.core)
// KotlinX DateTime - https://github.com/Kotlin/kotlinx-datetime
implementation(libs.kotlinx.datetime)
// SLF4J (Required by Kord) - https://github.com/qos-ch/slf4j
implementation(libs.slf4j.simple)
// SQLDelight - https://github.com/cashapp/sqldelight
implementation(libs.sqldelight.primitive.adapters)
implementation(libs.sqldelight.sqlite.driver)
}
sqldelight {
databases {
create("Database") {
packageName.set("com.russellbanks")
}
}
}
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
languageVersion.set(KotlinVersion.KOTLIN_2_0)
}
}
tasks.withType<JavaCompile> {
sourceCompatibility = JavaVersion.current().toString()
targetCompatibility = JavaVersion.VERSION_17.toString()
}
application {
mainClass.set("MainKt")
}