OpenProximityChat/server/build.gradle.kts

88 lines
2.9 KiB
Plaintext

val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
val exposed_version: String by project
val weupnp_version: String by project
val db_version: String by project
val junit_version: String by project
val api_version: String by project
plugins {
application
kotlin("jvm") version "1.7.21"
id("io.ktor.plugin") version "2.1.3"
id("org.jetbrains.kotlin.plugin.serialization") version "1.7.21"
}
group = "org.muellerssoftware.openproximitychat"
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()
}
dependencies {
// JUnit
testImplementation(platform("org.junit:junit-bom:$junit_version"))
testImplementation("org.junit.jupiter:junit-jupiter")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
// Ktor
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
implementation("io.ktor:ktor-server-locations-jvm:$ktor_version")
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktor_version")
implementation("io.ktor:ktor-client-content-negotiation-jvm:$ktor_version")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:$ktor_version")
implementation("io.ktor:ktor-server-auth-jvm:$ktor_version")
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
implementation("io.ktor:ktor-server-config-yaml:$ktor_version")
implementation("io.ktor:ktor-network:$ktor_version")
testImplementation("io.ktor:ktor-server-tests-jvm:$ktor_version")
// Logging
implementation("ch.qos.logback:logback-classic:$logback_version")
// Jetbrains Exposed
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
implementation("org.jetbrains.exposed:exposed-java-time:$exposed_version")
// H2
implementation("com.h2database:h2:$db_version")
// Common Kotlin
implementation(project(":common"))
}
tasks {
test {
testLogging {
events("passed", "skipped", "failed")
}
}
processResources {
filesMatching("versions.txt") {
expand(
mapOf(
"ktor_version" to ktor_version,
"logback_version" to logback_version,
"exposed_version" to exposed_version,
"weupnp_version" to weupnp_version,
"project_version" to project.version,
"db_version" to db_version,
"junit_version" to junit_version,
"api_version" to api_version
)
)
}
}
}