Created
June 7, 2019 19:11
-
-
Save jnorthrup/959bfd6ec30e07586e5c1c569221d079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'kotlin-multiplatform' version '1.3.31' | |
} | |
repositories { maven { | |
url "https://kotlin.bintray.com/kotlinx" | |
} | |
jcenter() | |
mavenCentral() | |
} | |
group 'com.example' | |
version '0.0.1' | |
apply plugin: 'maven-publish' | |
kotlin { | |
jvm() | |
js() | |
// For ARM, should be changed to iosArm32 or iosArm64 | |
// For Linux, should be changed to e.g. linuxX64 | |
// For MacOS, should be changed to e.g. macosX64 | |
// For Windows, should be changed to e.g. mingwX64 | |
linuxX64("linux") | |
sourceSets { | |
commonMain { | |
dependencies { | |
implementation kotlin('stdlib-common') | |
implementation 'org.jetbrains.kotlinx:kotlinx-io:0.1.9' | |
} | |
} | |
commonTest { | |
dependencies { | |
implementation kotlin('test-common') | |
implementation kotlin('test-annotations-common') | |
} | |
} | |
jvmMain { | |
dependencies { | |
implementation kotlin('stdlib-jdk8') | |
compile 'org.jetbrains.kotlinx:kotlinx-io-jvm:0.1.9' | |
} | |
} | |
jvmTest { | |
dependencies { | |
implementation kotlin('test') | |
implementation kotlin('test-junit') | |
} | |
} | |
jsMain { | |
dependencies { | |
implementation kotlin('stdlib-js') | |
} | |
} | |
jsTest { | |
dependencies { | |
implementation kotlin('test-js') | |
} | |
} | |
linuxMain { | |
} | |
linuxTest { | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment