2024-04-28 23:23:49 +08:00
|
|
|
val ktor_version: String by project
|
|
|
|
val kotlin_version: String by project
|
|
|
|
val logback_version: String by project
|
2024-05-19 23:07:25 +08:00
|
|
|
val exposed_version: String by project
|
2024-05-05 10:47:44 +08:00
|
|
|
val h2_version: String by project
|
|
|
|
val hikaricp_version: String by project
|
|
|
|
val ehcache_version: String by project
|
|
|
|
val mysql_driver_version: String by project
|
2024-04-28 23:23:49 +08:00
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "1.9.23"
|
|
|
|
id("io.ktor.plugin") version "2.3.10"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "echo.com"
|
|
|
|
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 {
|
|
|
|
implementation("io.ktor:ktor-server-core-jvm")
|
|
|
|
implementation("io.ktor:ktor-server-auth-jvm")
|
|
|
|
implementation("io.ktor:ktor-server-content-negotiation-jvm")
|
|
|
|
implementation("io.ktor:ktor-serialization-gson-jvm")
|
|
|
|
implementation("io.ktor:ktor-server-freemarker-jvm")
|
|
|
|
implementation("io.ktor:ktor-server-netty-jvm")
|
2024-05-19 23:07:25 +08:00
|
|
|
implementation("io.insert-koin:koin-ktor:3.2.0")
|
|
|
|
implementation("io.insert-koin:koin-core:3.2.0")
|
2024-04-28 23:23:49 +08:00
|
|
|
implementation("ch.qos.logback:logback-classic:$logback_version")
|
2024-05-05 10:47:44 +08:00
|
|
|
|
2024-04-28 23:23:49 +08:00
|
|
|
implementation("io.ktor:ktor-server-config-yaml:2.3.10")
|
2024-05-05 10:47:44 +08:00
|
|
|
// Exposed
|
|
|
|
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-dao:$exposed_version")
|
2024-05-19 23:07:25 +08:00
|
|
|
implementation("org.jetbrains.exposed:exposed-crypt:$exposed_version")
|
2024-05-05 10:47:44 +08:00
|
|
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-java-time:$exposed_version")
|
2024-05-19 23:07:25 +08:00
|
|
|
implementation("org.jetbrains.exposed:exposed-json:$exposed_version")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-money:$exposed_version")
|
2024-05-05 10:47:44 +08:00
|
|
|
implementation("com.h2database:h2:$h2_version")
|
|
|
|
|
2024-05-19 23:07:25 +08:00
|
|
|
//aliyunOss
|
|
|
|
implementation("com.aliyun.oss:aliyun-sdk-oss:3.17.4")
|
|
|
|
implementation("javax.xml.bind:jaxb-api:2.3.1")
|
|
|
|
implementation("javax.activation:activation:1.1.1")
|
|
|
|
implementation("org.glassfish.jaxb:jaxb-runtime:2.3.3")
|
|
|
|
|
|
|
|
|
2024-05-05 10:47:44 +08:00
|
|
|
//pool
|
|
|
|
implementation("com.zaxxer:HikariCP:$hikaricp_version")
|
|
|
|
implementation("org.ehcache:ehcache:$ehcache_version")
|
|
|
|
|
|
|
|
//mysql
|
|
|
|
implementation("mysql:mysql-connector-java:$mysql_driver_version")
|
|
|
|
|
2024-04-28 23:23:49 +08:00
|
|
|
testImplementation("io.ktor:ktor-server-tests-jvm")
|
|
|
|
testImplementation("org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version")
|
|
|
|
}
|