54 lines
1.9 KiB
Text
54 lines
1.9 KiB
Text
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 h2_version: String by project
|
|
|
|
plugins {
|
|
kotlin("jvm") version "1.9.10"
|
|
id("io.ktor.plugin") version "2.3.4"
|
|
id("org.jetbrains.kotlin.plugin.serialization") version "1.9.10"
|
|
}
|
|
|
|
group = "io.github.wulkanowy"
|
|
version = "0.1.0"
|
|
|
|
application {
|
|
mainClass.set("io.github.wulkanowy.schools.ApplicationKt")
|
|
|
|
// val isDevelopment: Boolean = project.ext.has("development")
|
|
// applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
|
|
}
|
|
|
|
val compileKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
|
val compileTestKotlin: org.jetbrains.kotlin.gradle.tasks.KotlinCompile by tasks
|
|
|
|
compileKotlin.kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
compileTestKotlin.kotlinOptions {
|
|
jvmTarget = JavaVersion.VERSION_11.toString()
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation("io.ktor:ktor-server-core-jvm:$ktor_version")
|
|
implementation("io.ktor:ktor-server-content-negotiation-jvm:$ktor_version")
|
|
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm:$ktor_version")
|
|
implementation("io.ktor:ktor-server-netty-jvm:$ktor_version")
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
|
|
|
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")
|
|
implementation("com.impossibl.pgjdbc-ng:pgjdbc-ng:0.8.9")
|
|
|
|
testImplementation("io.ktor:ktor-server-tests-jvm")
|
|
testImplementation("io.ktor:ktor-server-test-host-jvm")
|
|
testImplementation("io.ktor:ktor-client-content-negotiation-jvm")
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
|
}
|