-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.gradle.kts
82 lines (71 loc) · 1.76 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
@Suppress("DSL_SCOPE_VIOLATION") plugins {
application
alias(libs.plugins.kotest.multiplatform)
id(libs.plugins.kotlin.jvm.pluginId)
alias(libs.plugins.dokka)
id(libs.plugins.detekt.pluginId)
alias(libs.plugins.kover)
alias(libs.plugins.kotlinx.serialization)
alias(libs.plugins.sqldelight)
alias(libs.plugins.ktor)
alias(libs.plugins.spotless)
alias(libs.plugins.power.assert)
}
application {
mainClass = "io.github.nomisrev.MainKt"
}
sqldelight {
databases {
create("SqlDelight") {
packageName = "io.github.nomisrev.sqldelight"
dialect(libs.sqldelight.postgresql.get())
}
}
}
allprojects {
extra.set("dokka.outputDirectory", rootDir.resolve("docs"))
setupDetekt()
}
repositories {
mavenCentral()
}
tasks {
withType<KotlinCompile>().configureEach {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xcontext-receivers"
}
}
test {
useJUnitPlatform()
}
}
ktor {
docker {
jreVersion = JavaVersion.VERSION_19
localImageName = "ktor-arrow-example"
imageTag = "latest"
}
}
spotless {
kotlin {
targetExclude("**/build/**")
ktfmt("0.46").googleStyle()
}
}
dependencies {
implementation(libs.bundles.arrow)
implementation(libs.bundles.ktor.server)
implementation(libs.bundles.suspendapp)
implementation(libs.kjwt.core)
implementation(libs.logback.classic)
implementation(libs.sqldelight.jdbc)
implementation(libs.hikari)
implementation(libs.postgresql)
implementation(libs.slugify)
implementation(libs.bundles.cohort)
testImplementation(libs.bundles.ktor.client)
testImplementation(libs.testcontainers.postgresql)
testImplementation(libs.ktor.server.tests)
testImplementation(libs.bundles.kotest)
}