-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (50 loc) · 1.51 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
/*
* Copyright (c) 2022 Mark Dubkov. All rights reserved.
*/
plugins {
application
kotlin("jvm") version "1.9.21"
kotlin("plugin.serialization") version "1.9.21"
id("app.cash.sqldelight") version "2.0.2"
}
application {
mainClass.set("ru.kramlex.tgbot.bot.ApplicationKt")
}
group = "ru.kramlex"
version = "1.0.0"
kotlin {
jvmToolchain(17)
}
dependencies {
implementation(kotlin("script-runtime", version = "1.8.22"))
implementation(kotlin("script-util", version = "1.8.22"))
implementation(kotlin("compiler-embeddable", version = "1.8.22"))
implementation(kotlin("scripting-compiler-embeddable", version = "1.8.22"))
implementation(kotlin("script-util", version = "1.8.22"))
implementation(libs.slf4j)
implementation(libs.coroutines)
implementation(libs.tgBotApi)
implementation(libs.sqlDelightCoroutines)
implementation(libs.sqlDelightDriver)
implementation(libs.kotlinxDatetime)
implementation(projects.core)
implementation(libs.ktorClientCore)
implementation(libs.ktorClientCio)
implementation(libs.kotlinCsv)
testImplementation(libs.kotlinCsv)
testImplementation(libs.kotlinJunit)
}
sqldelight {
databases {
create("BotDatabase") {
packageName.set("ru.kramlex.db.generated")
srcDirs("src/main/sqldelight")
version = 1
}
}
}
tasks["build"].dependsOn("clean")
tasks.register("stage").configure {
dependsOn(listOf("build", "clean"))
tasks["build"].mustRunAfter("clean")
}