-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
64 lines (54 loc) · 1.79 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.tasks.KotlinCompile
plugins {
id("org.springframework.boot") version "3.2.4"
id("io.spring.dependency-management") version "1.1.4"
id("com.github.johnrengelman.shadow") version "8.1.1"
kotlin("jvm") version "1.9.23"
kotlin("plugin.spring") version "1.9.23"
kotlin("plugin.jpa") version "1.9.23"
kotlin("plugin.serialization") version "1.9.22"
application
}
group = "org.onesoftnet"
version = "1.0"
application {
mainClass = "$group.mailbot.MainKt"
}
java {
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
dependencies {
implementation("dev.kord:kord-core:0.13.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1-Beta")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.8.1-Beta")
implementation("io.github.cdimascio:dotenv-kotlin:6.4.1")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("org.slf4j:slf4j-simple:2.0.12")
implementation("org.ktorm:ktorm-core:3.6.0")
implementation("org.ktorm:ktorm-support-postgresql:3.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3")
implementation("com.google.guava:guava:33.1.0-jre")
implementation("io.ktor:ktor-client-cio-jvm:2.3.7")
implementation("io.ktor:ktor-client-content-negotiation:2.3.7")
implementation("io.ktor:ktor-serialization-kotlinx-json:2.3.7")
runtimeOnly("org.postgresql:postgresql")
testImplementation("org.jetbrains.kotlin:kotlin-test")
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs += "-Xjsr305=strict"
jvmTarget = "21"
}
}
kotlin {
jvmToolchain(21)
}
tasks.named<JavaExec>("run") {
standardInput = System.`in`
}