-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
62 lines (48 loc) · 1.96 KB
/
build.gradle.kts
File metadata and controls
62 lines (48 loc) · 1.96 KB
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.5.30"
kotlin("plugin.serialization") version "1.5.30"
}
group = "org.pool-party"
version = "0.1.0"
repositories {
maven("https://jitpack.io")
mavenCentral()
}
val jupyterVersion = "5.6.0"
val kotlinVersion = "1.5.30"
dependencies {
implementation("org.jetbrains.kotlin", "kotlin-stdlib-jdk8", kotlinVersion)
implementation("org.jetbrains.kotlin", "kotlin-reflect", kotlinVersion)
implementation("org.jetbrains.kotlinx", "kotlinx-serialization-protobuf", "1.2.2")
implementation("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.5.1")
implementation("com.github.elbekD", "kt-telegram-bot", "1.3.8")
implementation("com.natpryce", "konfig", "1.6.10.0")
implementation("org.slf4j", "slf4j-simple", "2.0.0-alpha2")
implementation("io.github.microutils", "kotlin-logging", "2.0.10")
testImplementation("org.jetbrains.kotlin", "kotlin-test-junit5", kotlinVersion)
testImplementation("org.junit.jupiter", "junit-jupiter-api", jupyterVersion)
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", jupyterVersion)
}
tasks.withType<Jar> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
configurations["compileClasspath"].forEach { from(zipTree(it.absoluteFile)) }
configurations["runtimeClasspath"].forEach { from(zipTree(it.absoluteFile)) }
manifest {
attributes(
mapOf(
"Main-Class" to "com.github.pool_party.resistance_bot.MainKt"
)
)
}
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.time.ExperimentalTime"
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlinx.coroutines.DelicateCoroutinesApi"
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi"
}