blob: 6300a4bb5a911149874503879b4c4a42eb156383 (
plain)
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
|
plugins {
kotlin("jvm")
kotlin("plugin.serialization")
application
id("com.github.gmazzo.buildconfig")
}
dependencies {
declareKtorVersion()
api("io.ktor:ktor-server-netty")
api("io.ktor:ktor-server-status-pages")
api("io.ktor:ktor-server-content-negotiation")
api("io.ktor:ktor-serialization-kotlinx-json")
api("io.ktor:ktor-server-compression")
api("io.ktor:ktor-server-cors")
api("sh.ondr:kotlin-json-schema:0.1.1")
api(project(":database:impl"))
api(project(":server:swagger"))
runtimeOnly("ch.qos.logback:logback-classic:1.5.16")
runtimeOnly("org.xerial:sqlite-jdbc:3.45.3.0")
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}
application {
val isDevelopment: Boolean = project.ext.has("development")
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment",
"-Dledger.databasefolder=${project(":mod").file("run/money-ledger").absoluteFile}")
mainClass.set("moe.nea.ledger.server.core.ApplicationKt")
}
buildConfig {
packageName("moe.nea.ledger.gen")
}
|