-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
51 lines (39 loc) · 1.2 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
plugins {
alias(libs.plugins.jvmPlugin)
alias(libs.plugins.ktorPlugin)
alias(libs.plugins.serializationPlugin)
}
group = "com.adikmt"
version = "0.0.1"
application {
mainClass.set("io.ktor.server.netty.EngineMain")
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
}
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
implementation(libs.bundles.coroutines)
implementation(libs.bundles.koin)
implementation(libs.bundles.logging)
implementation(libs.bundles.ktor)
implementation(libs.bundles.auth)
implementation(libs.bundles.db)
testImplementation(libs.bundles.testing)
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
languageVersion = "1.8"
freeCompilerArgs = freeCompilerArgs + listOf(
"-Xopt-in=kotlin.RequiresOptIn",
"-Xopt-in=kotlinx.serialization.ExperimentalSerializationApi",
"-Xopt-in=kotlin.time.ExperimentalTime",
"-Xopt-in=kotlinx.coroutines.ExperimentalCoroutinesApi"
)
}
}
tasks.withType<Test> {
useJUnitPlatform()
}