You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
csamsserver/build.gradle.kts

64 lines
1.9 KiB

val ktor_version: String by project
val kotlin_version: String by project
val logback_version: String by project
val exposedVersion: String by project
plugins {
application
kotlin("jvm") version "1.4.32"
kotlin("plugin.serialization") version "1.4.32"
}
group = "com.gyf.csams"
version = "0.0.1"
application {
mainClassName = "io.ktor.server.netty.EngineMain"
}
repositories {
mavenLocal()
jcenter()
maven { url = uri("https://kotlin.bintray.com/ktor") }
}
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
/**
* ktor
*/
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("io.ktor:ktor-server-core:$ktor_version")
/**
* https://github.com/google/gson
*/
implementation("io.ktor:ktor-gson:$ktor_version")
/**
* https://github.com/qos-ch/logback
*/
implementation("ch.qos.logback:logback-classic:$logback_version")
/**
* https://github.com/Kotlin/kotlinx.serialization
*/
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0")
/**
* https://github.com/JetBrains/Exposed
*/
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-java-time:$exposedVersion")
implementation("mysql:mysql-connector-java:8.0.19")
implementation("com.zaxxer:HikariCP:3.4.2")
implementation("cn.smallbun.screw:screw-core:1.0.5")
testImplementation("io.ktor:ktor-server-tests:$ktor_version")
}
kotlin.sourceSets["main"].kotlin.srcDirs("src")
kotlin.sourceSets["test"].kotlin.srcDirs("test")
sourceSets["main"].resources.srcDirs("resources")
sourceSets["test"].resources.srcDirs("testresources")