51 lines
No EOL
1.6 KiB
Text
51 lines
No EOL
1.6 KiB
Text
val kotlin_version: String by project
|
|
val logback_version: String by project
|
|
val kotlinx_html_version: String by project
|
|
val ktor_version: String by project
|
|
|
|
|
|
application {
|
|
mainClass.set("io.ktor.server.netty.EngineMain")
|
|
|
|
val isDevelopment: Boolean = project.ext.has("development")
|
|
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
|
|
}
|
|
|
|
|
|
plugins {
|
|
kotlin("jvm") version "2.0.0"
|
|
id("io.ktor.plugin") version "2.3.12"
|
|
}
|
|
|
|
group = "observer.nelle"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url = uri("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/kotlin-js-wrappers") }
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.ktor:ktor-server-status-pages:$ktor_version")
|
|
implementation("io.ktor:ktor-server-core-jvm")
|
|
implementation("io.ktor:ktor-server-html-builder-jvm")
|
|
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:$kotlinx_html_version")
|
|
implementation("org.jetbrains:kotlin-css-jvm:1.0.0-pre.129-kotlin-1.4.20")
|
|
implementation("io.ktor:ktor-server-sessions-jvm")
|
|
implementation("io.ktor:ktor-server-netty-jvm")
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
|
implementation("io.ktor:ktor-server-config-yaml")
|
|
implementation("org.jetbrains.kotlin:kotlin-stdlib:2.0.0")
|
|
implementation("io.ktor:ktor-client-core:$ktor_version")
|
|
implementation("io.ktor:ktor-client-cio:$ktor_version")
|
|
implementation("io.ktor:ktor-client-auth:$ktor_version")
|
|
implementation("io.ktor:ktor-client-content-negotiation:$ktor_version")
|
|
}
|
|
|
|
kotlin {
|
|
jvmToolchain(21)
|
|
}
|
|
|
|
task<Exec>("buildAstro") {
|
|
commandLine("pnpm", "-C", "../astro/", "run", "build")
|
|
} |