build.gradle 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. apply plugin: "kotlin-multiplatform"
  2. kotlin {
  3. targets {
  4. fromPreset(presets.jvm, "jvm")
  5. }
  6. jvm()
  7. sourceSets {
  8. commonMain {
  9. dependencies {
  10. // https://mvnrepository.com/artifact/org.jetbrains.kotlin/kotlin-reflect
  11. implementation rootProject.ext.kotlinCommon
  12. implementation rootProject.ext.reflect
  13. implementation rootProject.ext.coroutine
  14. implementation rootProject.ext.kotlinJvm
  15. }
  16. }
  17. jvmMain {
  18. dependencies {
  19. implementation rootProject.ext.kotlinJvm
  20. implementation rootProject.ext.reflect
  21. implementation rootProject.ext.coroutine
  22. implementation 'org.yaml:snakeyaml:1.18'
  23. implementation 'org.jsoup:jsoup:1.12.1'
  24. implementation 'org.ini4j:ini4j:0.5.2'
  25. }
  26. }
  27. all {
  28. languageSettings.enableLanguageFeature("InlineClasses")
  29. }
  30. }
  31. }
  32. compileKotlinJvm{
  33. }
  34. configurations {
  35. compileClasspath
  36. }
  37. /*
  38. dependencies {
  39. compile 'com.google.protobuf:protobuf-java:3.5.0'
  40. compile 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0-M2'
  41. compile 'io.netty:netty-all:4.1.38.Final'
  42. compile 'net.java.dev.jna:jna:5.4.0'
  43. compile 'org.apache.logging.log4j:log4j-core:2.12.1'
  44. compile 'org.yaml:snakeyaml:1.18'
  45. compile 'org.jetbrains.kotlin:kotlin-reflect:1.3.41'
  46. compile 'org.jsoup:jsoup:1.12.1'
  47. compile 'org.ini4j:ini4j:0.5.2'
  48. }*/