2019-10-10 11:27:30 +08:00
|
|
|
apply plugin: 'kotlinx-atomicfu'
|
2019-10-03 19:07:03 +08:00
|
|
|
apply plugin: "kotlin-multiplatform"
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
targets {
|
|
|
|
fromPreset(presets.jvm, "jvm")
|
2019-10-13 20:19:54 +08:00
|
|
|
//fromPreset(presets.mingwX64, "mingwX64")
|
2019-10-03 19:07:03 +08:00
|
|
|
}
|
2019-10-24 22:25:12 +08:00
|
|
|
jvm{
|
|
|
|
withJava()
|
|
|
|
}
|
2019-10-03 19:07:03 +08:00
|
|
|
|
2019-10-13 20:19:54 +08:00
|
|
|
/*
|
|
|
|
mingwX64("mingwX64") {
|
|
|
|
binaries {
|
|
|
|
executable {
|
|
|
|
// Change to specify fully qualified name of your application's entry point:
|
|
|
|
entryPoint = 'main'
|
|
|
|
// Specify command-line arguments, if necessary:
|
|
|
|
runTask?.args('')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
2019-10-03 19:07:03 +08:00
|
|
|
sourceSets {
|
|
|
|
commonMain {
|
|
|
|
dependencies {
|
2019-10-24 10:59:13 +08:00
|
|
|
api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-common', version: kotlin_version
|
|
|
|
api group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlin_version
|
|
|
|
api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core-common', version: coroutines_version
|
|
|
|
api group: 'org.jetbrains.kotlinx', name: 'atomicfu-common', version: atomicfu_version
|
|
|
|
api group: 'org.jetbrains.kotlinx', name: 'kotlinx-io', version: kotlinxio_version
|
|
|
|
api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-io', version: coroutinesio_version
|
|
|
|
|
|
|
|
implementation "com.soywiz.korlibs.klock:klock:$klock_version"
|
|
|
|
|
|
|
|
api group: 'io.ktor', name: 'ktor-client-core', version: ktor_version
|
|
|
|
//api group: 'io.ktor', name: 'ktor-client-cio', version: ktor_version
|
|
|
|
//api group: 'io.ktor', name: 'ktor-client', version: ktor_version
|
|
|
|
api group: 'io.ktor', name: 'ktor-http', version: ktor_version
|
|
|
|
//api group: 'io.ktor', name: 'ktor-utils', version: ktor_version
|
|
|
|
//api group: 'io.ktor', name: 'ktor-io', version: ktorio_version
|
2019-10-03 19:07:03 +08:00
|
|
|
}
|
|
|
|
}
|
2019-10-13 20:19:54 +08:00
|
|
|
|
2019-10-03 19:07:03 +08:00
|
|
|
jvmMain {
|
2019-10-08 16:35:30 +08:00
|
|
|
apply plugin: 'java'
|
|
|
|
|
2019-10-03 19:07:03 +08:00
|
|
|
dependencies {
|
2019-10-24 10:59:13 +08:00
|
|
|
api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlin_version
|
|
|
|
api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlin_version
|
|
|
|
api group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlin_version
|
|
|
|
api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutines_version
|
|
|
|
api group: 'org.jetbrains.kotlinx', name: 'atomicfu', version: atomicfu_version
|
|
|
|
api group: 'org.jetbrains.kotlinx', name: 'kotlinx-io', version: kotlinxio_version
|
|
|
|
// api group: 'org.jetbrains.kotlinx', name: 'kotlinx-io-jvm', version: kotlinxio_version
|
|
|
|
api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-io', version: coroutinesio_version
|
|
|
|
|
|
|
|
api group: 'io.ktor', name: 'ktor-http-cio', version: ktor_version
|
|
|
|
api group: 'io.ktor', name: 'ktor-http', version: ktor_version
|
|
|
|
api group: 'io.ktor', name: 'ktor-client-core-jvm', version: ktor_version
|
|
|
|
api group: 'io.ktor', name: 'ktor-client-cio', version: ktor_version
|
2019-10-03 19:07:03 +08:00
|
|
|
|
|
|
|
implementation 'org.yaml:snakeyaml:1.18'
|
|
|
|
implementation 'org.jsoup:jsoup:1.12.1'
|
|
|
|
implementation 'org.ini4j:ini4j:0.5.2'
|
|
|
|
}
|
|
|
|
}
|
2019-10-13 20:19:54 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
mingwX64Main {
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
// https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-reflect
|
|
|
|
implementation rootProject.ext.kotlinCommon
|
|
|
|
implementation rootProject.ext.coroutine
|
|
|
|
implementation rootProject.ext.coroutineNative
|
|
|
|
implementation rootProject.ext.kotlinNative
|
|
|
|
implementation rootProject.ext.reflect
|
|
|
|
|
|
|
|
//implementation rootProject.ext.coroutine
|
|
|
|
implementation rootProject.ext.kotlinxIONative
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
|
2019-10-03 21:12:54 +08:00
|
|
|
jvmTest {
|
2019-10-24 22:25:12 +08:00
|
|
|
apply plugin: 'java'
|
2019-10-03 21:12:54 +08:00
|
|
|
}
|
2019-10-03 19:07:03 +08:00
|
|
|
|
|
|
|
all {
|
|
|
|
languageSettings.enableLanguageFeature("InlineClasses")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-10-03 21:12:54 +08:00
|
|
|
compileKotlinJvm {
|
2019-10-03 19:07:03 +08:00
|
|
|
|
2019-10-24 22:25:12 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
compileTestJava{
|
|
|
|
|
2019-10-13 20:19:54 +08:00
|
|
|
}
|