A "universal" / normalized API wrapper for git hosting services.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

61 righe
1.9 KiB

  1. apply plugin: "kotlin-multiplatform"
  2. apply plugin: "kotlinx-serialization"
  3. group 'gitrest'
  4. version '0.0.1'
  5. kotlin {
  6. jvm()
  7. sourceSets {
  8. commonMain {
  9. dependencies {
  10. implementation kotlin('stdlib-common')
  11. implementation "io.ktor:ktor-client-core:$ktor_version"
  12. implementation "io.ktor:ktor-client-json:$ktor_version"
  13. implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serialization_version"
  14. }
  15. }
  16. commonTest {
  17. dependencies {
  18. implementation kotlin('test-common')
  19. implementation kotlin('test-annotations-common')
  20. }
  21. }
  22. jvmMain {
  23. dependencies {
  24. implementation kotlin('stdlib-jdk8')
  25. implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serialization_version"
  26. // TODO: ktor dependency for android / jvm
  27. }
  28. }
  29. jvmTest {
  30. dependencies {
  31. implementation kotlin('test')
  32. implementation kotlin('test-junit')
  33. }
  34. }
  35. jsMain {
  36. dependencies {
  37. implementation kotlin('stdlib-js')
  38. implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$serialization_version"
  39. implementation "io.ktor:ktor-client-js:$ktor_version"
  40. }
  41. }
  42. jsTest {
  43. dependencies {
  44. implementation kotlin('test-js')
  45. }
  46. }
  47. nativeMain {
  48. dependencies {
  49. implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime-native:$serialization_version"
  50. implementation "io.ktor:ktor-client-curl:$ktor_version"
  51. }
  52. }
  53. nativeTest {}
  54. }
  55. }
  56. task run dependsOn "check"