-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
60 lines (51 loc) · 1.58 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.9.10"
kotlin("plugin.serialization") version "1.9.10"
application
}
group = "com.github.ksugirl"
version = "0.0.1-SNAPSHOT"
repositories {
mavenCentral()
maven("https://jitpack.io")
}
dependencies {
runtimeOnly("org.jetbrains.kotlin:kotlin-scripting-jsr223:1.9.10")
implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.github.sisyphsu:dateparser:1.0.11")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-cbor:1.5.0")
implementation("io.github.kotlin-telegram-bot.kotlin-telegram-bot:telegram:6.1.0")
implementation("com.sksamuel.hoplite:hoplite-core:2.7.3")
testImplementation("com.google.truth:truth:1.1.3")
testImplementation("io.mockk:mockk:1.13.4")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.10.0")
}
application {
mainClass.set("com.github.sheriff.kotlin.sun.red.ApplicationKt")
applicationDefaultJvmArgs += "--enable-preview"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "19"
freeCompilerArgs += listOf(
"-Xjsr305=strict",
"-Xvalue-classes",
"-opt-in=kotlin.ExperimentalStdlibApi",
"-opt-in=kotlin.time.ExperimentalTime",
"-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
)
}
}
tasks.withType<JavaCompile> {
sourceCompatibility = "19"
targetCompatibility = "19"
}
tasks.withType<Test> {
useJUnitPlatform()
jvmArgs("--enable-preview")
}
tasks.build {
dependsOn(tasks.installDist)
}