Skip to content

Instantly share code, notes, and snippets.

@jnorthrup
Created June 7, 2019 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jnorthrup/959bfd6ec30e07586e5c1c569221d079 to your computer and use it in GitHub Desktop.
Save jnorthrup/959bfd6ec30e07586e5c1c569221d079 to your computer and use it in GitHub Desktop.
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