Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. plugins {
  2. id 'kotlin-multiplatform' version '1.3.31'
  3. }
  4. repositories {
  5. jcenter()
  6. mavenCentral()
  7.  
  8. }
  9. group 'com.example'
  10. version '0.0.1'
  11.  
  12. apply plugin: 'maven-publish'
  13.  
  14. kotlin {
  15. jvm()
  16. js()
  17. // For ARM, should be changed to iosArm32 or iosArm64
  18. // For Linux, should be changed to e.g. linuxX64
  19. // For MacOS, should be changed to e.g. macosX64
  20. // For Windows, should be changed to e.g. mingwX64
  21. linuxX64("linux")
  22. sourceSets {
  23. commonMain {
  24. dependencies {
  25. implementation kotlin('stdlib-common')
  26. implementation 'org.jetbrains.kotlinx:kotlinx-io:0.1.9'
  27. }
  28. }
  29. commonTest {
  30. dependencies {
  31. implementation kotlin('test-common')
  32. implementation kotlin('test-annotations-common')
  33.  
  34. }
  35. }
  36. jvmMain {
  37. dependencies {
  38. implementation kotlin('stdlib-jdk8')
  39. compile 'org.jetbrains.kotlinx:kotlinx-io-jvm:0.1.9'
  40.  
  41. }
  42. }
  43. jvmTest {
  44. dependencies {
  45. implementation kotlin('test')
  46. implementation kotlin('test-junit')
  47. }
  48. }
  49. jsMain {
  50. dependencies {
  51. implementation kotlin('stdlib-js')
  52. }
  53. }
  54. jsTest {
  55. dependencies {
  56. implementation kotlin('test-js')
  57. }
  58. }
  59. linuxMain {
  60. }
  61. linuxTest {
  62. }
  63. }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement