2023-09-16 14:12:37 +02:00
|
|
|
val ktor_version: String by project
|
|
|
|
val kotlin_version: String by project
|
|
|
|
val logback_version: String by project
|
2023-09-16 16:17:31 +02:00
|
|
|
val exposed_version: String by project
|
|
|
|
val h2_version: String by project
|
2023-09-16 14:12:37 +02:00
|
|
|
|
|
|
|
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 {
|
2023-09-16 16:17:31 +02:00
|
|
|
mainClass.set("io.github.wulkanowy.schools.ApplicationKt")
|
2023-09-16 14:12:37 +02:00
|
|
|
|
2023-09-16 16:17:31 +02:00
|
|
|
// 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()
|
2023-09-16 14:12:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-09-16 16:17:31 +02:00
|
|
|
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")
|
2023-09-16 14:12:37 +02:00
|
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
2023-09-18 21:34:29 +02:00
|
|
|
implementation("io.ktor:ktor-server-auth:$ktor_version")
|
2023-09-19 21:24:30 +02:00
|
|
|
implementation("com.google.apis:google-api-services-playintegrity:v1-rev20230910-2.0.0")
|
|
|
|
implementation("com.google.auth:google-auth-library-oauth2-http:1.19.0")
|
2023-09-16 16:17:31 +02:00
|
|
|
|
|
|
|
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")
|
2023-09-24 20:03:09 +02:00
|
|
|
implementation("org.postgresql:postgresql:42.6.0")
|
|
|
|
implementation("org.flywaydb:flyway-core:9.22.2")
|
2023-09-18 21:34:29 +02:00
|
|
|
implementation("io.ktor:ktor-server-auth-jvm:2.3.4")
|
2023-09-16 16:17:31 +02:00
|
|
|
|
2023-09-16 14:12:37 +02:00
|
|
|
testImplementation("io.ktor:ktor-server-tests-jvm")
|
2023-09-16 16:17:31 +02:00
|
|
|
testImplementation("io.ktor:ktor-server-test-host-jvm")
|
|
|
|
testImplementation("io.ktor:ktor-client-content-negotiation-jvm")
|
2023-09-16 14:12:37 +02:00
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
|
|
|
}
|