-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
52 lines (46 loc) · 1.42 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
import io.gitlab.arturbosch.detekt.Detekt
@Suppress("DSL_SCOPE_VIOLATION", "UnstableApiUsage")
plugins {
application
kotlin("jvm") version libs.versions.kotlin.get()
alias(libs.plugins.detekt)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.kover)
alias(libs.plugins.ktlint)
alias(libs.plugins.shadow)
}
group = "com.example"
version = "0.0.1"
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
repositories {
mavenCentral()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
}
dependencies {
implementation(libs.logback)
implementation(libs.koin.ktor)
implementation(libs.ktor.serialization.kotlinx.json)
implementation(libs.ktor.server.content.negotiation)
implementation(libs.ktor.server.core)
implementation(libs.ktor.server.host.common)
implementation(libs.ktor.server.netty)
implementation(libs.ktor.server.status.pages)
testImplementation(libs.koin.test)
testImplementation(libs.koin.test.junit4)
testImplementation(libs.kotlin.test.junit)
testImplementation(libs.ktor.server.tests)
}
tasks {
@Suppress("UnusedPrivateMember")
val detektCheck by registering(Detekt::class) {
parallel = true
ignoreFailures = true
setSource(files(projectDir))
include("**/*.kt")
include("**/*.kts")
exclude("**/resources/**")
exclude("**/build/**")
}
}