-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
66 lines (56 loc) · 1.85 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
65
66
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
alias(libs.plugins.jvm)
alias(libs.plugins.serialization)
alias(libs.plugins.ktlint)
alias(libs.plugins.flyway)
}
group = "org.pool-party"
version = "1.2.10"
repositories {
maven("https://jitpack.io")
mavenCentral()
}
dependencies {
implementation(libs.kotlin.std)
implementation(libs.kotlin.reflect)
implementation(libs.kotlin.serialization)
implementation(libs.telegramBot)
implementation(libs.exposed.core)
implementation(libs.exposed.dao)
implementation(libs.exposed.jdbc)
implementation(libs.exposed.jodatime)
implementation(libs.postgresql)
implementation(libs.flyway)
implementation(libs.konfig)
implementation(libs.slf4j)
implementation(libs.logging)
implementation(libs.stringSimilarity)
testImplementation(libs.kotlin.test.junit5)
testCompileOnly(libs.jupiter.api)
testRuntimeOnly(libs.jupiter.engine)
testImplementation(libs.mockk)
testImplementation(libs.testContainers.jupiter)
testImplementation(libs.testContainers.postgres)
}
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.poolParty.pullPartyBot.MainKt",
)
)
}
}
tasks.test {
useJUnitPlatform()
}
tasks.withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlinx.coroutines.DelicateCoroutinesApi"
kotlinOptions.freeCompilerArgs += "-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
kotlinOptions.freeCompilerArgs += "-Xcontext-receivers"
}