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.
76 lines
2.0 KiB
76 lines
2.0 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.5.10"
|
|
}
|
|
|
|
group = "com.gyf.csams"
|
|
version = "0.0.1"
|
|
|
|
application {
|
|
// mainClassName = "io.ktor.server.netty.EngineMain"
|
|
mainClass.set("io.ktor.server.netty.EngineMain")
|
|
}
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
jcenter()
|
|
maven { url = uri("https://kotlin.bintray.com/ktor") }
|
|
}
|
|
|
|
subprojects {
|
|
repositories{
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":module"))
|
|
|
|
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")
|
|
|
|
listOf("main","test").forEach {
|
|
kotlin.sourceSets[it].apply {
|
|
kotlin.srcDirs("src/${name}/kotlin")
|
|
resources.srcDirs("src/${name}/resources")
|
|
}
|
|
} |