通用中后台框架第一版
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
plugins {
|
||||
kotlin("jvm") version "2.3.20"
|
||||
id("io.ktor.plugin") version "3.4.1"
|
||||
id("org.jetbrains.kotlin.plugin.serialization") version "2.3.20"
|
||||
}
|
||||
|
||||
group = "com.bbit.platform"
|
||||
version = "0.0.1"
|
||||
|
||||
application {
|
||||
mainClass = "io.ktor.server.netty.EngineMain"
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
val kotlinVersion = "2.3.20"
|
||||
implementation("io.ktor:ktor-server-core")
|
||||
implementation("io.ktor:ktor-serialization-kotlinx-json")
|
||||
implementation("io.ktor:ktor-server-content-negotiation")
|
||||
implementation("io.ktor:ktor-server-cors")
|
||||
implementation("io.ktor:ktor-server-host-common")
|
||||
implementation("io.ktor:ktor-server-status-pages")
|
||||
implementation("io.ktor:ktor-server-auth")
|
||||
implementation("io.ktor:ktor-server-auth-jwt")
|
||||
implementation("io.ktor:ktor-server-netty")
|
||||
implementation("io.ktor:ktor-server-call-logging")
|
||||
implementation("ch.qos.logback:logback-classic:1.5.13")
|
||||
implementation("io.ktor:ktor-server-config-yaml")
|
||||
testImplementation("io.ktor:ktor-server-test-host")
|
||||
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlinVersion")
|
||||
|
||||
// 数据库
|
||||
val exposedVersion = "1.1.1"
|
||||
implementation("org.postgresql:postgresql:42.7.10")
|
||||
implementation("org.jetbrains.exposed:exposed-core:${exposedVersion}")
|
||||
implementation("org.jetbrains.exposed:exposed-jdbc:${exposedVersion}")
|
||||
implementation("org.jetbrains.exposed:exposed-java-time:${exposedVersion}")
|
||||
implementation("org.jetbrains.exposed:exposed-migration-jdbc:$exposedVersion")
|
||||
implementation("com.zaxxer:HikariCP:7.0.2")
|
||||
implementation("org.mindrot:jbcrypt:0.4")
|
||||
|
||||
// Redis
|
||||
implementation("org.redisson:redisson:3.38.1")
|
||||
}
|
||||
Reference in New Issue
Block a user