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

76 lines
2.0 KiB

4 years ago
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"
4 years ago
}
group = "com.gyf.csams"
version = "0.0.1"
application {
// mainClassName = "io.ktor.server.netty.EngineMain"
mainClass.set("io.ktor.server.netty.EngineMain")
4 years ago
}
repositories {
mavenLocal()
jcenter()
maven { url = uri("https://kotlin.bintray.com/ktor") }
}
subprojects {
repositories{
mavenCentral()
}
}
4 years ago
dependencies {
implementation(project(":module"))
4 years ago
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version")
/**
* ktor
*/
4 years ago
implementation("io.ktor:ktor-server-netty:$ktor_version")
implementation("io.ktor:ktor-server-core:$ktor_version")
/**
* https://github.com/google/gson
*/
4 years ago
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
*/
4 years ago
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0")
/**
* https://github.com/JetBrains/Exposed
*/
4 years ago
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")
4 years ago
implementation("mysql:mysql-connector-java:8.0.19")
implementation("com.zaxxer:HikariCP:3.4.2")
implementation("cn.smallbun.screw:screw-core:1.0.5")
4 years ago
testImplementation("io.ktor:ktor-server-tests:$ktor_version")
}
4 years ago
//
//kotlin.sourceSets["main"].kotlin.srcDirs("src")
//kotlin.sourceSets["test"].kotlin.srcDirs("test")
4 years ago
4 years ago
listOf("main","test").forEach {
kotlin.sourceSets[it].apply {
kotlin.srcDirs("src/${name}/kotlin")
resources.srcDirs("src/${name}/resources")
}
}