kotlin { targets { fromPreset(presets.jvm, "jvm") //fromPreset(presets.jvm, "android") //fromPreset(presets.mingwX64, "mingwX64") } jvm{ withJava() } /* mingwX64("mingwX64") { binaries { executable { // Change to specify fully qualified name of your application's entry point: entryPoint = 'hex.main' // Specify command-line arguments, if necessary: runTask?.args('') } } }*/ sourceSets { commonMain { dependencies { api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-common', version: kotlinVersion api group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlinVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core-common', version: coroutinesVersion api group: 'org.jetbrains.kotlinx', name: 'atomicfu-common', version: atomicFuVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-io', version: kotlinXIoVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-io', version: coroutinesIoVersion implementation "com.soywiz.korlibs.klock:klock:$klockVersion" api group: 'io.ktor', name: 'ktor-client-core', version: ktorVersion api group: 'io.ktor', name: 'ktor-network', version: ktorVersion //api group: 'io.ktor', name: 'ktor-client-cio', version: ktorVersion //api group: 'io.ktor', name: 'ktor-client', version: ktorVersion api group: 'io.ktor', name: 'ktor-http', version: ktorVersion //api group: 'io.ktor', name: 'ktor-utils', version: ktorVersion //api group: 'io.ktor', name: 'ktor-io', version: ktorio_version } } jvmMain { apply plugin: 'java' dependencies { api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlinVersion api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion api group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlinVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion api group: 'org.jetbrains.kotlinx', name: 'atomicfu', version: atomicFuVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-io', version: kotlinXIoVersion // api group: 'org.jetbrains.kotlinx', name: 'kotlinx-io-jvm', version: kotlinXIoVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-io', version: coroutinesIoVersion api group: 'io.ktor', name: 'ktor-http-cio', version: ktorVersion api group: 'io.ktor', name: 'ktor-http', version: ktorVersion api group: 'io.ktor', name: 'ktor-client-core-jvm', version: ktorVersion api group: 'io.ktor', name: 'ktor-client-cio', version: ktorVersion implementation 'org.yaml:snakeyaml:1.18' implementation 'org.jsoup:jsoup:1.12.1' implementation 'org.ini4j:ini4j:0.5.2' } } /* 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 } }*/ jvmTest { apply plugin: 'java' } androidMain{ dependencies{ api 'com.google.android:android:4.1.1.4' api 'com.android.support:support-annotations:26.1.0' api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlinVersion api group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: kotlinVersion api group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlinVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-core', version: coroutinesVersion api group: 'org.jetbrains.kotlinx', name: 'atomicfu', version: atomicFuVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-io', version: kotlinXIoVersion // api group: 'org.jetbrains.kotlinx', name: 'kotlinx-io-jvm', version: kotlinXIoVersion api group: 'org.jetbrains.kotlinx', name: 'kotlinx-coroutines-io', version: coroutinesIoVersion api group: 'io.ktor', name: 'ktor-http-cio', version: ktorVersion api group: 'io.ktor', name: 'ktor-http', version: ktorVersion api group: 'io.ktor', name: 'ktor-client-core-jvm', version: ktorVersion api group: 'io.ktor', name: 'ktor-client-cio', version: ktorVersion } } all { languageSettings.enableLanguageFeature("InlineClasses") } } } compileKotlinJvm { } compileTestJava{ }