Files
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

58 lines
1.7 KiB
Kotlin

val ktorVersion: String by project
val kotlinVersion: String by project
val logbackVersion: String by project
val koinVersion: String by project
val postgresVersion: String by project
plugins {
application
kotlin("jvm") version "1.6.0"
id("org.jetbrains.kotlin.plugin.serialization") version "1.6.0"
id("org.jlleitschuh.gradle.ktlint") version "10.2.1"
}
allprojects {
group = "einsen.spikeysanju.dev"
version = "0.0.1"
repositories {
mavenCentral()
maven { setUrl("https://dl.bintray.com/kotlin/ktor") }
}
}
application {
mainClass.set("io.ktor.server.netty.EngineMain")
}
repositories {
mavenCentral()
}
dependencies {
// Ktor
implementation("io.ktor:ktor-server-core:$ktorVersion")
implementation("io.ktor:ktor-serialization:$ktorVersion")
implementation("io.ktor:ktor-auth:$ktorVersion")
implementation("io.ktor:ktor-auth-jwt:$ktorVersion")
implementation("io.ktor:ktor-server-netty:$ktorVersion")
implementation("ch.qos.logback:logback-classic:$logbackVersion")
// Exposed
implementation("org.jetbrains.exposed:exposed-core:0.36.2")
implementation("org.jetbrains.exposed:exposed-dao:0.36.2")
implementation("org.jetbrains.exposed:exposed-jdbc:0.36.2")
implementation("org.jetbrains.exposed:exposed-jodatime:0.36.2")
// PostgreSQL
implementation("org.postgresql:postgresql:42.3.1")
// Koin core features
implementation("io.insert-koin:koin-core:$koinVersion")
implementation("io.insert-koin:koin-ktor:$koinVersion")
implementation("io.insert-koin:koin-logger-slf4j:$koinVersion")
// Coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0-native-mt")
}